feat: embed static files into binary
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user