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