feat(http): init golatt

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-09 21:24:31 +01:00
parent f4da86b98e
commit b637ff02f6
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
3 changed files with 58 additions and 1 deletions

18
main.go
View file

@ -1,5 +1,21 @@
package main
func main() {
import (
"embed"
"github.com/anhgelus/golatt"
)
//go:embed templates
var templates embed.FS
func main() {
g := golatt.New(templates)
g.DefaultSeoData = &golatt.SeoData{
Image: "",
Description: "",
Domain: "now.anhgelus.world",
}
g.Templates = append(g.Templates, "templates/page/*.gohtml")
g.StartServer(":80")
}