golang

package
v0.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package golang provides all needed logic for installation of Golang

Package golang provides additional golang methods for linux installation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VersionLink is the URL link from which we can get all possible versions
	VersionLink = "https://golang.org/dl"

	// DownloadLink from which we download binaries for golang
	DownloadLink = "https://storage.googleapis.com/golang"
)

Functions

This section is empty.

Types

type Golang

type Golang struct {
	Version string
	Emitter *emission.Emitter
	pkg.Base
}

Golang essential struct

func New

func New(version string, emitter *emission.Emitter) *Golang

New returns language struct

func (Golang) Bins

func (golang Golang) Bins() []string

Bins returns list of the all bins included with the distribution of the language

func (Golang) Dots

func (golang Golang) Dots() []string

Dots returns list of the all available filenames which can define versions

func (Golang) Environment

func (golang Golang) Environment() (result []string, err error)

Environment returns list of the all needed envionment variables

func (Golang) Events

func (golang Golang) Events() *emission.Emitter

Events returns language related event emitter

func (Golang) Info

func (golang Golang) Info() map[string]string

Info provides all the info needed for installation of the plugin

func (Golang) ListRemote

func (golang Golang) ListRemote() (result []string, err error)

ListRemote returns list of the all available remote versions

func (Golang) PostInstall

func (golang Golang) PostInstall() error

PostInstall hook

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL