16 lines
182 B
Go
Raw Permalink Normal View History

2024-03-12 19:35:19 +00:00
package main
import (
2024-03-22 14:08:24 +00:00
"git.akyoto.dev/go/web"
2024-03-12 19:35:19 +00:00
)
func main() {
2024-03-22 14:08:24 +00:00
s := web.NewServer()
2024-03-12 19:35:19 +00:00
2024-03-22 14:08:24 +00:00
s.Get("/", func(ctx web.Context) error {
2024-03-12 19:35:19 +00:00
return ctx.String("Hello")
})
2024-03-12 21:31:45 +00:00
s.Run(":8080")
2024-03-12 19:35:19 +00:00
}