21 lines
235 B
Markdown
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)
|
|
``` |