Home

Awesome

Build Status

go

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. See documentation

Maintainers

Type of Package

Binary package

Use as Dependency

Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.

To add core/go as a dependency, you can add one of the following to your plan file.

Buildtime Dependency

pkg_build_deps=(core/go)

Runtime dependency

pkg_deps=(core/go)

Use as Tool

Installation

To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.

hab pkg install core/go --binlink

will add the following binaries to the PATH:

For example:

$ hab pkg install core/go --binlink
» Installing core/go
☁ Determining latest version of core/go in the 'stable' channel
→ Found newer installed version (core/go/1.15/20200902132846) than remote version (core/go/1.15/20200824091619)
→ Using core/go/1.15/20200902132846
★ Install of core/go/1.15/20200902132846 complete with 0 new packages installed.
» Binlinking gofmt from core/go/1.15/20200902132846 into /bin
★ Binlinked gofmt from core/go/1.15/20200902132846 to /bin/gofmt
» Binlinking go from core/go/1.15/20200902132846 into /bin
★ Binlinked go from core/go/1.15/20200902132846 to /bin/go

Using an example binary

You can now use the binary as normal. For example:

/bin/go --help or go --help

$ go --help
Go is a tool for managing Go source code.

Usage:

        go <command> [arguments]

The commands are:

        bug         start a bug report
        build       compile packages and dependencies
        clean       remove object files and cached files
        doc         show documentation for package or symbol
        env         print Go environment information
        fix         update packages to use new APIs
        fmt         gofmt (reformat) package sources
...
...