server/server.go
2024-07-02 15:24:08 +04:00

13 lines
202 B
Go

package main
import (
"github.com/valyala/fasthttp"
)
func main() {
fasthttp.ListenAndServe("127.0.0.1:4001", handler)
}
func handler(ctx *fasthttp.RequestCtx) {
ctx.Response.SetStatusCode(200)
}