cors_fasthttp/examples/server.go

18 lines
248 B
Go
Raw Permalink Normal View History

2017-08-31 07:30:44 +00:00
package main
import (
"github.com/valyala/fasthttp"
"git.loafle.net/commons_go/cors_fasthttp"
)
func main() {
2017-11-23 07:42:44 +00:00
c := cors_fasthttp.AllowAll()
2017-08-31 07:30:44 +00:00
fasthttp.ListenAndServe(":8080", c.Handler(Handler))
}
func Handler(ctx *fasthttp.RequestCtx) {
}