Documentation
¶
Index ¶
- type Util
- func (c *Util) CommandLineArgumentExists(f string) bool
- func (c *Util) Getenv(key string, fallback string) string
- func (c *Util) GetenvFile(path string, fallback string) string
- func (c *Util) ReadFile(path string) (string, error)
- func (c *Util) Run(bin string, params []string) (string, error)
- func (c *Util) WriteFile(path string, txt string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Util ¶ added in v0.1.5
type Util struct{}
func (*Util) CommandLineArgumentExists ¶ added in v0.1.5
checks if the command line argument exists (case-sensitive)
func (*Util) Getenv ¶ added in v0.1.5
checks if an environment variable exists and if not assigns a default value
func (*Util) GetenvFile ¶ added in v0.1.5
checks if a file containing an environment variable exists and if not assigns a default value
func (*Util) ReadFile ¶ added in v0.1.5
reads a file if it exists and returns the content of the file
Click to show internal directories.
Click to hide internal directories.