cors_fasthttp/examples/server.go
crusader c1655c3e72 ing
2017-11-23 16:42:44 +09:00

18 lines
248 B
Go

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