2023-07-18 21:48:38 +02:00

235 B

server

HTTP server.

Installation

go get git.akyoto.dev/go/server

Example

s := server.New()

s.Get("/", func(ctx server.Context) error {
	return ctx.String("Hello")
})

http.ListenAndServe(":8080", s)