INNER CODE UNIT · Go

main

networknt/microservices-framework-benchmark · go-fasthttp/server.go:20

func main() {
    flag.Parse()

    var err error

    s := &fasthttp.Server{
        Handler: mainHandler,
        Name:    "go",
    }
    ln := getListener()
    if err = s.Serve(ln); err != nil {
        log.Fatalf("Error when serving incoming connections: %s", err)
    }

}

func mainHandler(ctx *fasthttp.RequestCtx) {
    path := ctx.Path()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…