Added router benchmarks
This commit is contained in:
17
examples/hello/main.go
Normal file
17
examples/hello/main.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user