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) { }