2
0

12 Commits

Author SHA1 Message Date
Bo-Yi Wu c719ab6b53 chore: improve linting and error handling across the codebase
- Update golangci-lint-action to version 7 in GitHub workflow
- Specify version 2.0 for golangci-lint-action in GitHub workflow
- Set golangci-lint configuration version to "2"
- Enable specific linters and disable default linters in golangci configuration
- Add exclusions and formatters configurations in golangci configuration
- Replace deprecated `ioutil.ReadAll` with `io.ReadAll` in sse-decoder.go
- Use grouped variable declaration for `contentType` and `noCache` in sse-encoder.go
- Add error handling for `WriteString` operations in sse-encoder.go
- Add `nolint:exhaustive` comment for `kindOfData` switch statement in sse-encoder.go
- Adjust test assertions for better readability in sse_test.go
- Add error handling for `Encode` function calls in tests and benchmarks

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2025-04-08 08:38:00 +08:00
leonlau 4ac659647a Fix Unicode encoding errors (#2) 2022-04-04 19:19:04 +08:00
田欧 a7658810eb Update sse_test.go 2019-01-25 10:09:43 +08:00
田欧 71ee3f40a7 fix test error 2019-01-25 10:07:02 +08:00
田欧 4710fbb28d attempt to fix test error 2019-01-25 10:02:09 +08:00
Manu Mtz-Almeida fe6ea2c8e3 Conforms to w3.org standard + experimental decoder 2015-07-15 20:48:05 +02:00
Manu Mtz-Almeida c142f0f1ba Conforms to new Render API 2015-06-04 11:11:00 +02:00
Manu Mtz-Almeida 092a804d3e Adds benchmarks 2015-05-30 11:21:18 +02:00
Manu Mtz-Almeida 947fcf68d8 Adds MIT license 2015-05-22 19:21:58 +02:00
Manu Mtz-Almeida 320b4a6cca sse conforms to the gin.render.Render interface 2015-05-18 15:44:06 +02:00
Manu Mtz-Almeida 29bc476855 Adds travis and godocs banners 2015-05-13 23:39:13 +02:00
Manu Mtz-Almeida d43a7ecd18 Initial commit 2015-05-13 19:56:47 +02:00