feat: initial commit
This commit is contained in:
16
main.go
Normal file
16
main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log/slog"
|
||||
|
||||
"git.yadunut.dev/yadunut.dev/site"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := site.NewConfig(slog.LevelDebug, 8080)
|
||||
c.Logger.Info("Starting server")
|
||||
if err := site.Run(c); err != nil {
|
||||
c.Logger.Error(fmt.Sprintf("failed with error %s", err))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user