Versions in this module Expand all Collapse all v1 v1.5.0 Oct 23, 2016 Changes in this version + func AllPtrFieldsNil(obj interface{}) bool + func CompileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) + func ExecuteTemplate(w io.Writer, templateText string, data interface{}) error + func ExecuteTemplateToString(templateText string, data interface{}) (string, error) + func FileExists(filename string) (bool, error) + func Int32Ptr(i int32) *int32 + func Int32PtrDerefOr(ptr *int32, def int32) int32 + func IntPtr(i int) *int + func IntPtrDerefOr(ptr *int, def int) int + func ReadDirNoExit(dirname string) ([]os.FileInfo, []error, error) + func Umask(mask int) (old int, err error) + func UsingSystemdInitSystem() bool + type StringFlag struct + func NewStringFlag(defaultVal string) StringFlag + func (f *StringFlag) Default(value string) + func (f *StringFlag) Set(value string) error + func (f *StringFlag) Type() string + func (f StringFlag) Provided() bool + func (f StringFlag) String() string + func (f StringFlag) Value() string + type Trace struct + func NewTrace(name string) *Trace + func (t *Trace) Log() + func (t *Trace) LogIfLong(threshold time.Duration) + func (t *Trace) Step(msg string) + func (t *Trace) TotalTime() time.Duration