xenv

package
v0.0.0-...-89edfd8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Prefix = ""
)

Functions

This section is empty.

Types

type Env

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

func New

func New() *Env

func (*Env) AddString

func (e *Env) AddString(key, value string)

func (*Env) BuildDebug

func (e *Env) BuildDebug() bool

func (*Env) BuildStamp

func (e *Env) BuildStamp() int64

func (*Env) CheckArchitecture

func (e *Env) CheckArchitecture() bool

func (*Env) Compiler

func (e *Env) Compiler() string

func (*Env) GOARCH

func (e *Env) GOARCH() string

func (*Env) GOOS

func (e *Env) GOOS() string

func (*Env) GOPATH

func (e *Env) GOPATH() string

func (*Env) GOPATHBIN

func (e *Env) GOPATHBIN() string

func (*Env) GOROOT

func (e *Env) GOROOT() string

func (*Env) GOVER

func (e *Env) GOVER() string

func (*Env) GetAll

func (e *Env) GetAll() map[string]string

func (*Env) GetAsBool

func (e *Env) GetAsBool(key string) bool

func (*Env) GetAsInt

func (e *Env) GetAsInt(key string) int

func (*Env) GetFormattedTime

func (e *Env) GetFormattedTime() string

func (*Env) GetString

func (e *Env) GetString(key string) string

func (*Env) GetUsername

func (e *Env) GetUsername() string

func (*Env) IsCompiled

func (e *Env) IsCompiled() bool

func (*Env) ListSeparator

func (e *Env) ListSeparator() string

func (*Env) Now

func (e *Env) Now(layout string) string

func (*Env) NumCPU

func (e *Env) NumCPU() int

func (*Env) PathSeparator

func (e *Env) PathSeparator() string

func (*Env) SetBool

func (e *Env) SetBool(key string, value bool) error

func (*Env) SetInt

func (e *Env) SetInt(key string, value int) error

func (*Env) SetString

func (e *Env) SetString(key, value string) error

func (*Env) Size

func (e *Env) Size() int

Jump to

Keyboard shortcuts

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