cmd

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGolangUrl  = "https://golang.org"
	DefaultGorootsDir = "goroots"
	DefaultTempDir    = "tmp"
	InitialVersion    = "0.0.0"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SetVersionInfo added in v0.3.4

func SetVersionInfo(version, commit, date string)

Types

type Config added in v0.0.2

type Config struct {
	GolangUrl  string   `mapstructure:"golang_url"`
	GorootsDir string   `mapstructure:"goroots_dir"`
	TempDir    string   `mapstructure:"temp_dir"`
	Versions   []string `mapstructure:"versions"`
}

Jump to

Keyboard shortcuts

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