config

package
v0.0.0-...-6ca8186 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BASHRC = ".bashrc"
View Source
const BASH_PROFILE = ".bash_profile"
View Source
const CONFIG_FILE = ".goroot.json"
View Source
const FILE_CONFIG_NAME = "goroot"
View Source
const GOROOT_CONSTANT = `GOROOT`
View Source
const KEY_GOROOT = "GOROOT"
View Source
const PROFILE = ".profile"
View Source
const QUIT = "quit"
View Source
const SOURCE_COMMAND = "source"

Variables

View Source
var FILE_CONFIG_PATH string

Functions

func AddNewPath

func AddNewPath(key, value string) (err error)

func GetConfig

func GetConfig(key string) (str map[string]string, err error)

func RemovePath

func RemovePath(path string) (err error)

Types

type GOROOT

type GOROOT interface {
	ChangePath(path string) error
	GetPath() (string, error)
}
var PATH GOROOT

type Path

type Path struct {
	Key   string
	Value string
}

func GetPath

func GetPath() (path []Path, err error)

func (Path) String

func (p Path) String() string

Jump to

Keyboard shortcuts

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