中文]
Description[Fishserver is designed to quickly add HTTP handlers to HTTP servers. It supports registration of various HTTP. Handler interface types such as Gin Engine, Go's built-in HTTP. HandlerFunc, or http.ServeMux. The HTTP server can be configured quickly with options and can be used for test cases.
Installation
go get -u github.com/coolstina/fishserver
Features.
- Specify the HTTP server configuration with options.
- Context and context.CancelFunc of specified types are supported, which can be used on production or test servers.
- Gracefully shut down the server.
How to use?
Please refer to example.
Documents.
It's very simple to use, just out of the box, and you can view the documentation through GoDoc.