Skip to content

Latest commit

 

History

History
83 lines (45 loc) · 1.4 KB

File metadata and controls

83 lines (45 loc) · 1.4 KB

Reference

Table of Contents

Classes

Classes

golang

Download and install Go programming language

Examples

include golang

Parameters

The following parameters are available in the golang class:

version

Data type: String

Version of Go to install

Default value: '1.25.6'

os

Data type: String[1]

The GOOS to install

Default value: downcase($facts['kernel'])

arch

Data type: String[1]

The GOARCH to install

Default value: $facts['os']['architecture']

download_dir

Data type: Stdlib::Absolutepath

The directory of where to download Go

Default value: '/tmp'

extract_dir

Data type: Stdlib::Absolutepath

The directory where to extract Go

Default value: '/opt'

bin_dir

Data type: Stdlib::Absolutepath

The path to bin directory for go and gofmt symlinks

Default value: '/usr/bin'