feat(http): init golatt
This commit is contained in:
parent
f4da86b98e
commit
b637ff02f6
3 changed files with 58 additions and 1 deletions
18
main.go
18
main.go
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue