16 lines
185 B
Go
Raw Normal View History

2024-03-12 20:35:19 +01:00
package main
import (
"git.akyoto.dev/go/server"
)
func main() {
s := server.New()
s.Get("/", func(ctx server.Context) error {
return ctx.String("Hello")
})
2024-03-12 22:31:45 +01:00
s.Run(":8080")
2024-03-12 20:35:19 +01:00
}