https://github.com/fox-one/pkg
Go packages by Fox.ONE
https://github.com/fox-one/pkg
Last synced: about 1 year ago
JSON representation
Go packages by Fox.ONE
- Host: GitHub
- URL: https://github.com/fox-one/pkg
- Owner: fox-one
- License: mit
- Created: 2019-11-05T07:09:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T00:06:20.000Z (over 2 years ago)
- Last Synced: 2025-01-17T13:32:39.470Z (over 1 year ago)
- Language: Go
- Size: 334 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkg
Go packages by Fox.ONE
# Upgrate Notes
## Separate go mod
Before this change, we put a single `go.mod` file in the root directory, any project that import the library will have a lot of unnecessary dependencies.
Then we delete the global `go.mod` file and put `go.mod` in each sub-package directory, based on this, there are some points that need attention here,
1. Migrate from old way, remove the `github.com/fox-one/pkg` line in your `go.mod` file, then execute `go mod tidy` will load all sub-package you imported.
2. No more tags like `vX.Y.Z` will be created later, according to the [go mod doc](https://go.dev/ref/mod#vcs-version), use `sub-package/vX.Y.Z` instead.
3. When you add a new sub-package, make sure that your sub-package does not depend on `github.com/fox-one/pkg`, otherwise it will lead to dependency conflict for the user.