chore: add install, guide in readme

main
sudo pacman -Syu 2022-07-22 23:11:07 +07:00
parent 3141645fe5
commit 20a98e07f9
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 23 additions and 0 deletions

View File

@ -2,6 +2,29 @@
Only upgrade specific subset not all modules.
## Install
Should use Go version `>= 1.16`:
```sh
go install github.com/haunt98/update-go-mod/cmd/update-go-mod@latest
```
## Usage
Create local file `.deps` or use url depends on your use case:
```sh
# Default read from .deps
update-go-mod
# Read from URL
update-go-mod --deps-url "https://example.txt"
# Don't do anythin
update-go-mod --dry-run
```
## Thanks
- [Managing dependencies](https://go.dev/doc/modules/managing-dependencies)