Package Exports
- go-bin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (go-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
go-bin

Get Go binaries by version tag
local install
$ npm install --save go-bincli install
$ npm install --global go-binapi
returns promise which resolves to newly created Go directory
- options (Object)
- includeTag - optional
- description: Include subdirectory with
go-${version} - type: String
- default: true
- description: Include subdirectory with
- version - required
- description: Go version tag
- type: String
- example:
1.8.3
- dir - optional
- description: Output path Go binaries will land in
- type: String
- example:
C:\\Go(unlessincludeTag = falsefinal path would beC:\\Go\\go-1.8.3) - default:
__dirname + 'vendor'
- includeTag - optional
programmatic usage
const goBin = require('go-bin')
goBin({version: '1.8.3', dir: '~/here'}).then(console.log).catch(console.error)cli usage
$ go-bin -v 1.8.3 -d ~/here
# ~/here/go-1.8.3related
ngo - Run Go commands, whether your Go env is in place or not
go-versions - Get list of Go version tags
go-latest - Get latest Go version tag
license
MIT © Andrew Carpenter