cors_fasthttp/examples/server.go
crusader 044bb80933 ing
2017-08-31 16:30:44 +09:00

21 lines
316 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.New(ctx, cors_fasthttp.CorsOptions{})
fasthttp.ListenAndServe(":8080", c.Handler(Handler))
}
func Handler(ctx *fasthttp.RequestCtx) {
}