feat: embed static files into binary

This commit is contained in:
rramiachraf
2024-05-03 14:47:57 +01:00
parent 2c0f43b8f7
commit 6d6856700b
13 changed files with 74 additions and 39 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
"io"
"log/slog"
"os"
)
type Logger struct {
@ -24,3 +25,8 @@ func (l *Logger) Error(f string, args ...any) {
func (l *Logger) Info(f string, args ...any) {
l.slog.Info(fmt.Sprintf(f, args...))
}
func (l *Logger) Fatal(f string, args ...any) {
l.Error(f, args...)
os.Exit(1)
}