mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
1.1 KiB
1.1 KiB
asdf-golang
golang plugin for asdf version manager
Requirements
Ubuntu 16.04+ curl
Install
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
Use
Check the asdf readme for instructions on how to install & manage versions of go.
When using go get
After using go get
to install a package you need to run asdf reshim golang
to get any new shims.
Default go get
packages
asdf-golang can automatically install a default set of packages with go get -u $PACKAGE
right after installing a new Go version.
To enable this feature, provide a $HOME/.default-golang-pkgs file that lists one package per line, for example:
// allows comments
github.com/Dreamacro/clash
github.com/jesseduffield/lazygit
Contributing
Feel free to create an issue or pull request if you find a bug.
Issues
- Assumes Linux, FreeBSD, or Mac
- Assumes x86_64, i386, i686, armv6l, armv7l, arm64 and ppc64le
License
MIT License