asdf-golang/README.md

48 lines
1.1 KiB
Markdown
Raw Normal View History

2016-08-30 10:01:14 +08:00
[![Build Status](https://travis-ci.org/kennyp/asdf-golang.svg?branch=master)](https://travis-ci.org/kennyp/asdf-golang)
2016-02-29 15:23:40 +08:00
# asdf-golang
golang plugin for [asdf version manager](https://github.com/asdf-vm/asdf)
2016-02-29 15:23:40 +08:00
## Requirements
**Ubuntu 16.04+** `curl`
2016-02-29 15:23:40 +08:00
## Install
```
2016-02-29 15:36:42 +08:00
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
2016-02-29 15:23:40 +08:00
```
## Use
Check the [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to install & manage versions of go.
2016-02-29 15:23:40 +08:00
2019-09-11 10:57:17 +08:00
## 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
```
2016-02-29 15:23:40 +08:00
## 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
2016-02-29 15:23:40 +08:00
## License
MIT License