config

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLinkName    = "current"                      //作成するリンク名
	GoGetLink          = "golang.org/dl"                //ダウンロード時のリンク先
	GitHubDownloadPage = "https://github.com/golang/dl" //GitHub上のバージョンリスト
	GolangDownloadPage = "https://golang.org/dl"        //install時のダウンロード
)

Variables

This section is empty.

Functions

func Set

func Set(opts ...Option) error

Types

type Config

type Config struct {
	LinkName string //リンク名
}

func Get

func Get() *Config

type Option

type Option func(*Config) error

実行オプション

func SetLinkName

func SetLinkName(l string) Option

シンボリックリンクの名称

Jump to

Keyboard shortcuts

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