golang

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoLang

type GoLang struct {
	// contains filtered or unexported fields
}

GoLang model

func New

func New() *GoLang

New golang pkg

func (*GoLang) Install

func (c *GoLang) Install(version, hash string) (string, error)

Install custom go version

func (*GoLang) UpdateEnv

func (c *GoLang) UpdateEnv() (out string, err error)

UpdateEnv update go env

func (*GoLang) UpdateSettings

func (c *GoLang) UpdateSettings(home, envfile string) error

UpdateSettings settings install

func (*GoLang) VersionsList

func (c *GoLang) VersionsList() (model []VersionsResponse, err error)

VersionsList get go versions

type VersionsResponse

type VersionsResponse struct {
	Version string `json:"version"`
	Stable  bool   `json:"stable"`
	Files   []struct {
		Filename string `json:"filename"`
		Os       string `json:"os"`
		Arch     string `json:"arch"`
		Version  string `json:"version"`
		Sha256   string `json:"sha256"`
		Size     int    `json:"size"`
		Kind     string `json:"kind"`
	} `json:"files"`
}

VersionsResponse model

Jump to

Keyboard shortcuts

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