Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 736 Bytes

golang.md

File metadata and controls

33 lines (21 loc) · 736 Bytes

Install Go

This stencil installs a standard golang distribution. Go requries the whole zip file unfortunately, so this installs the actual go binary under ./bin/go/bin/go

Usage

stencil pull git:git@github.com:argots/stencil.git/std/golang.md

Version

The version of Go to use is defined by the std.GoVersion variable.


{{ stencil.DefineString "std.GoVersion" "Version of Go (default v1.14.2)" }}
{{ $ver := (or (stencil.VarString "std.GoVersion") "v1.14.2" ) }}

Install


{{ $os := stencil.OS }}
{{ $arch := stencil.Arch }}
{{ $url := printf "https://dl.google.com/go/%s.%s-%s.tar.gz" $ver $os $arch }}
{{ stencil.CopyManyFromArchive "golang" "./bin/"  $url "**" }}