gin
gin copied to clipboard
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Use the `out.Write` to write the log content immediately, because the `LogFormatter` returns a string, the `fmt.Fprint` is unnecessary here.
`DataFromReader` has buffering on the HTTP response, so it is not suitable to stream data to a client. `DataFromStream` disables buffering and flushes data as soon as it is sent...
## Description Cancelling a request with the AbortController doesn't seems to cancel the request context. Details about the AbortController: https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort ## How to reproduce Query an endpoint via javascript while...
notify main goroutine exits when listener goroutine occured an error, such as, already in use error - With pull requests: - Open your pull request against `master` - Your pull...
1. Merge the write operation for json render and improve the code coverage. 2. Reduce convert between `int32` and `string` in the `AsciiJSON.Render` function.
I do not want to enable jsoniter by add compile tags. Is there any way else to enable jsoniter by code?
`jsoniter` tag run unit test error: ``` === RUN TestContextRenderIndentedJSON context_test.go:757: Error Trace: context_test.go:757 Error: Not equal: expected: "{\n \"bar\": \"foo\",\n \"foo\": \"bar\",\n \"nested\": {\n \"foo\": \"bar\"\n }\n}" actual :...