cors_fasthttp/examples/server.go
crusader 2a40c39f08 ing
2017-08-31 16:34:43 +09:00

21 lines
292 B
Go

package main
import (
"context"
"github.com/valyala/fasthttp"
"git.loafle.net/commons_go/cors_fasthttp"
)
func main() {
ctx := context.Background()
c := cors_fasthttp.AllowAll(ctx)
fasthttp.ListenAndServe(":8080", c.Handler(Handler))
}
func Handler(ctx *fasthttp.RequestCtx) {
}