...

Package xos

import "oss.terrastruct.com/util-go/xos"
Overview
Index

Overview ▾

Package xos provides useful os helpers.

type Env

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

func NewEnv

func NewEnv(environ []string) *Env

func (*Env) Bool

func (e *Env) Bool(name string) (*bool, error)

func (*Env) CI

func (e *Env) CI() bool

func (*Env) Debug

func (e *Env) Debug() bool

func (*Env) Environ

func (e *Env) Environ() []string

func (*Env) Getenv

func (e *Env) Getenv(name string) string

func (*Env) HumanPath

func (e *Env) HumanPath(fp string) string

func (*Env) Setenv

func (e *Env) Setenv(name, value string)