21 lines
292 B
Go
21 lines
292 B
Go
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) {
|
|
|
|
}
|