Sergey Solodyagin
deecef94c1
upgrade go version
v1.1.0
2025-07-09 14:54:35 +03:00
Sergey Solodyagin
5ccfa4c62d
remove unused
2025-07-09 14:50:06 +03:00
Sergey Solodyagin
7df6fe66c8
Merge remote-tracking branch 'upstream/master'
2025-07-09 14:48:39 +03:00
Bo-Yi Wu
9246475528
refactor: refactor codebase for improved performance and maintainability
...
- Simplify variable initialization in `decode` method
- Correct method call in `WriteString` function
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2025-04-08 08:39:14 +08:00
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
Bo-Yi Wu
47d1560405
chore: update Go version to 1.23 and adjust dependencies accordingly
...
- Remove support for Go versions 1.21 and 1.22 in the GitHub workflow
- Update Go version to 1.23 in go.mod
- Add indirect dependencies: go-spew, go-difflib, and yaml.v3 in go.mod
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2025-04-08 08:31:24 +08:00
Bo-Yi Wu
b4b7d1b5c1
ci: update GitHub Actions and improve test configurations
...
- Add Go version 1.24 to the GitHub Actions workflow
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2025-02-12 09:42:10 +08:00
Bo-Yi Wu
b0e321a937
ci: refactor GitHub Actions workflows for improved efficiency
...
- Add a GitHub Actions workflow for Bearer PR Check
- Add Bearer action to Go workflow
- Remove macOS from Go workflow operating systems
- Remove redundant checkout step from Go workflow
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2024-12-31 15:45:48 +08:00
Bo-Yi Wu
f8a6bb093d
build: configure release process and changelog management
...
- Add `.goreleaser.yaml` configuration file
- Skip build process for library projects
- Configure changelog to use GitHub with categorized groups for features, bug fixes, enhancements, refactors, build process updates, documentation updates, and others
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2024-12-31 15:44:08 +08:00
Bo-Yi Wu
5929346166
ci: update GitHub workflows and improve test configurations
...
- Update Codecov action from version `v4` to `v5` in GitHub workflow
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2024-12-31 15:42:39 +08:00
Bo-Yi Wu
cffc294e1b
docs: improve test coverage and update CI configurations
...
- Update badge text from "Build Status" to "Run Tests"
- Change code block language from unspecified to `sh`
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2024-12-31 15:41:35 +08:00
Bo-Yi Wu
de96a1faf5
ci: add and enhance CI workflows for Go projects and code analysis
...
- Remove Dependabot configuration file
- Add CodeQL analysis workflow for code scanning
- Add CodeQL workflow with scheduled runs and matrix configuration for Go language
- Rename Go workflow to "Run Tests"
- Update Go workflow branches configuration
- Upgrade actions and tools versions in Go workflow
- Expand Go workflow matrix to include multiple OS and Go versions
- Add GoReleaser workflow for automated releases
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2024-12-31 15:39:25 +08:00
Bo-Yi Wu
744c7182dd
chore: update dependencies and improve test configurations
...
- Update `testify` dependency from version `1.8.0` to `1.10.0` in `go.mod`
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2024-12-31 15:38:12 +08:00
Caesar M. Tsai
3f42f2ed01
feat: Encode function can optimize byte array handling ( #42 )
...
In scenarios where byte array JSON messages are forwarded (e.g., from MQ), the previous approach required unmarshalling into an object before encoding for SSE.
The updated logic allows []byte to be passed directly, simplifying message forwarding and reducing unnecessary conversions.
// before
byteData := messageFromMQ()
data := make(map[string]any)
json.Unmarshal(byteData, &data)
sse.Encode(new(bytes.Buffer), sse.Event{
Data: data,
})
// after
byteData := messageFromMQ()
sse.Encode(new(bytes.Buffer), sse.Event{
Data: byteData,
})
2024-12-31 15:36:49 +08:00
Sergey Solodyagin
44e9501005
rename module
2024-10-25 16:00:24 +03:00
thinkerou
e597170caa
Merge pull request #35 from gin-contrib/dependabot/github_actions/actions/cache-3.2.5
...
Bump actions/cache from 3.2.4 to 3.2.5
2023-02-14 13:32:13 +08:00
dependabot[bot]
a207db83ce
Bump actions/cache from 3.2.4 to 3.2.5
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.2.4...v3.2.5 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-13 11:57:45 +00:00
thinkerou
0db5f9d454
Merge pull request #34 from gin-contrib/dependabot/github_actions/actions/cache-3.2.4
...
Bump actions/cache from 3.2.3 to 3.2.4
2023-02-07 16:38:02 +08:00
dependabot[bot]
7a8d62f9c7
Bump actions/cache from 3.2.3 to 3.2.4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.3 to 3.2.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.2.3...v3.2.4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-06 11:01:57 +00:00
thinkerou
e3ecb06a99
Merge pull request #32 from gin-contrib/dependabot/github_actions/actions/cache-3.2.3
...
Bump actions/cache from 3.0.4 to 3.2.3
2023-01-09 20:16:56 +08:00
dependabot[bot]
0457432d42
Bump actions/cache from 3.0.4 to 3.2.3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.4 to 3.2.3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.4...v3.2.3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-09 11:02:38 +00:00
thinkerou
a9845aa057
Merge pull request #20 from gin-contrib/dependabot/go_modules/github.com/stretchr/testify-1.8.0
...
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
2022-07-05 09:57:19 +08:00
dependabot[bot]
d5584a62d2
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-04 11:15:48 +00:00
thinkerou
6d87db8b2c
Merge pull request #19 from gin-contrib/dependabot/go_modules/github.com/stretchr/testify-1.7.5
...
Bump github.com/stretchr/testify from 1.7.3 to 1.7.5
2022-06-28 10:44:24 +08:00
dependabot[bot]
6a322eddfe
Bump github.com/stretchr/testify from 1.7.3 to 1.7.5
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.3 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.3...v1.7.5 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-27 11:10:43 +00:00
thinkerou
3d36914825
Merge pull request #18 from gin-contrib/dependabot/go_modules/github.com/stretchr/testify-1.7.3
...
Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
2022-06-20 20:12:17 +08:00
dependabot[bot]
9684d1af91
Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.3 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-20 11:20:14 +00:00
thinkerou
26c7357d42
Merge pull request #17 from gin-contrib/dependabot/github_actions/actions/cache-3.0.4
...
Bump actions/cache from 3.0.3 to 3.0.4
2022-06-13 20:04:03 +08:00
dependabot[bot]
7c6565fd0b
Bump actions/cache from 3.0.3 to 3.0.4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.3...v3.0.4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-13 11:13:32 +00:00
thinkerou
24ebcbcff5
Merge pull request #16 from gin-contrib/dependabot/go_modules/github.com/stretchr/testify-1.7.2
...
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
2022-06-07 07:53:53 +08:00
thinkerou
7a680aa138
Merge pull request #15 from gin-contrib/dependabot/github_actions/actions/cache-3.0.3
...
Bump actions/cache from 3.0.2 to 3.0.3
2022-06-07 07:53:43 +08:00
dependabot[bot]
24c04f76c8
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-06 11:17:39 +00:00
dependabot[bot]
fc6709a655
Bump actions/cache from 3.0.2 to 3.0.3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.2...v3.0.3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-06 11:17:15 +00:00
thinkerou
dd1a6434be
Merge pull request #14 from gin-contrib/dependabot/github_actions/golangci/golangci-lint-action-3.2.0
...
Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0
2022-05-18 22:28:32 +08:00
dependabot[bot]
a3e0f6f277
Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-16 11:09:54 +00:00
thinkerou
069594b0dc
Merge pull request #13 from gin-contrib/dependabot/github_actions/actions/cache-3.0.2
...
Bump actions/cache from 3.0.1 to 3.0.2
2022-04-22 18:53:30 +08:00
thinkerou
8c9bd28179
Merge pull request #12 from gin-contrib/dependabot/github_actions/actions/setup-go-3
...
Bump actions/setup-go from 2 to 3
2022-04-22 18:53:19 +08:00
thinkerou
716e073935
Merge pull request #11 from gin-contrib/dependabot/github_actions/codecov/codecov-action-3
...
Bump codecov/codecov-action from 2 to 3
2022-04-22 18:52:59 +08:00
dependabot[bot]
d4b0d19783
Bump actions/cache from 3.0.1 to 3.0.2
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.1...v3.0.2 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 11:12:18 +00:00
dependabot[bot]
7ee7429332
Bump actions/setup-go from 2 to 3
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 11:12:15 +00:00
dependabot[bot]
9d70eb5fde
Bump codecov/codecov-action from 2 to 3
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 11:12:13 +00:00
leonlau
4ac659647a
Fix Unicode encoding errors ( #2 )
2022-04-04 19:19:04 +08:00
dependabot[bot]
ea4ee031b4
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 ( #8 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 19:18:44 +08:00
dependabot[bot]
044c53d488
Bump actions/checkout from 2 to 3 ( #7 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 19:18:27 +08:00
dependabot[bot]
88fd93cde9
Bump golangci/golangci-lint-action from 2 to 3.1.0 ( #6 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 19:18:08 +08:00
dependabot[bot]
689ed5f3dd
Bump actions/cache from 2 to 3.0.1 ( #10 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 19:15:18 +08:00
thinkerou
ab64730e37
Merge pull request #5 from mmorel-35/patch-1
...
Update badges
2021-08-24 09:51:40 +08:00
Matthieu MOREL
2183763cc0
Update badges
2021-08-23 16:06:52 +02:00
Bo-Yi Wu
fa715febff
Merge pull request #4 from mmorel-35/master
...
chore(ci) : update dependencies and upgrade minimum go version to 1.13
2021-08-21 22:12:47 +08:00
Matthieu MOREL
db223ce4af
chore(ci) : update ci
...
- migrate from travis to github workflow
- upgrade minimum go version to 1.13
- setup golangci job
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com >
Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-20 13:37:44 +02:00