New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

go-bin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go-bin

Get Go binaries by version tag

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

go-bin NPM version js-standard-style Dependency Status Build Status

Get Go binaries by version tag

local install

$ npm install --save go-bin

cli install

$ npm install --global go-bin

api

returns promise which resolves to newly created Go directory

  • options (Object)
    • includeTag - optional
      • description: Include subdirectory with go-${version}
      • type: String
      • default: true
    • 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 (unless includeTag = false final path would be C:\\Go\\go-1.8.3)
      • default: __dirname + 'vendor'

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.3
  • 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

Keywords

FAQs

Package last updated on 15 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc