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

21 lines
235 B
Markdown

# server
HTTP server.
## Installation
```shell
go get git.akyoto.dev/go/server
```
## Example
```go
s := server.New()
s.Get("/", func(ctx server.Context) error {
return ctx.String("Hello")
})
http.ListenAndServe(":8080", s)
```