18 lines
248 B
Go
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) {
|
|
|
|
}
|