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)
- version - required
- description: GO version tag
- type: String
- example:
1.7.3
- dir - optional
- description: Output path GO binaries will land in
- type: String
- example:
C:\\GO(final path would beC:\\GO\\go-1.7.3) - default:
__dirname + 'vendor'
- version - required
programmatic usage
const goBin = require('go-bin')
goBin({version: '1.7.3', dir: '~/here'}).then(console.log).catch(console.error)cli usage
$ go-bin -v 1.7.3 -d ~/here
# ~/here/go-1.7.3License
MIT © Andrew Carpenter