server/server.go

14 lines
202 B
Go
Raw Normal View History

2024-07-02 14:24:08 +03:00
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)
}