Added router benchmarks

This commit is contained in:
2024-03-12 20:35:19 +01:00
parent 070b374c6e
commit cb6106a26d
10 changed files with 129 additions and 11 deletions

17
examples/hello/main.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"net/http"
"git.akyoto.dev/go/server"
)
func main() {
s := server.New()
s.Get("/", func(ctx server.Context) error {
return ctx.String("Hello")
})
http.ListenAndServe(":8080", s)
}