aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 21:24:31 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 21:24:31 +0100
commitb637ff02f660b109d419d99df64c81940f7a8290 (patch)
treeb2bad3e918b1de186d6169ac9b2d299717e44eb2 /main.go
parentf4da86b98e43eb411c16ec85c21171e81b6b33aa (diff)
feat(http): init golatt
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/main.go b/main.go
index 7905807..eb55d06 100644
--- a/main.go
+++ b/main.go
@@ -1,5 +1,21 @@
package 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")
}