16 lines
182 B
Go
Raw Normal View History

2024-03-12 20:35:19 +01:00
package main
import (
2025-02-25 16:48:09 +01:00
"git.urbach.dev/go/web"
2024-03-12 20:35:19 +01:00
)
func main() {
2024-03-22 15:08:24 +01:00
s := web.NewServer()
2024-03-12 20:35:19 +01:00
2024-03-22 15:08:24 +01:00
s.Get("/", func(ctx web.Context) error {
2024-03-12 20:35:19 +01:00
return ctx.String("Hello")
})
2024-03-12 22:31:45 +01:00
s.Run(":8080")
2024-03-12 20:35:19 +01:00
}