21 lines
235 B
Markdown
Raw Normal View History

2023-07-18 19:48:38 +00:00
# server
2023-07-18 11:37:05 +00:00
2023-07-18 19:48:38 +00:00
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)
```