https://github.com/antonputra/go-utils
https://github.com/antonputra/go-utils
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/antonputra/go-utils
- Owner: antonputra
- License: mit
- Created: 2024-11-28T09:35:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-24T12:13:36.000Z (over 1 year ago)
- Last Synced: 2025-01-24T13:23:12.041Z (over 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-utils
## Release
1. Update Go version in `go.mod` file.
2. Update packages used in the application.
```bash
go get -u ./util ./monitoring
```
3. Run go mod tidy, which removes any dependencies the module might have accumulated that are no longer necessary.
```bash
go mod tidy
```
4. Run go test ./... a final time to make sure everything is working.
```bash
go test ./...
```
5. Tag the project with a new version number using the git tag command.
```bash
git add .
git commit -m "util: changes for v0.1.0"
git tag v0.1.0
```
6. Push the new tag to the origin repository.
```bash
git push --atomic origin main v0.1.0
```
7. Make the module available by running the go list command to prompt Go to update its index of modules with information about the module you’re publishing.
```bash
GOPROXY=proxy.golang.org go list -m github.com/antonputra/go-utils@v0.1.0
```