Categorygithub.com/tsuru/config
modulepackage
0.0.0-20201023175036-375aaee8b560
Repository: https://github.com/tsuru/config.git
Documentation: pkg.go.dev

# README

Config

ci

PkgGoDev

Config is a Go package to manage yaml configuration files.

For usage information, read our package documentation: http://godoc.org/github.com/tsuru/config.

# Functions

Bytes serialize the configuration in YAML format.
Check a parsed config file and consider warnings as errors.
Check a parsed config file and writes warnings to received writer.
Get returns the value for the given key, or an error if the key is undefined.
GetBool does a type assertion before returning the requested value.
GetDuration parses and returns a duration from the config file.
GetFloat works like Get, but does a float type assertion and attempts string conversion before returning the value.
GetInt works like Get, but does an int type assertion and attempts string conversion before returning the value.
GetList works like Get, but returns a slice of strings instead.
GetString works like Get, but does an string type assertion before returning the value.
GetUint parses and returns an unsigned integer from the config file.
No description provided by the author
ReadAndWatchConfigFile reads and watchs for changes in the configuration file.
ReadConfigBytes receives a slice of bytes and builds the internal configuration object.
ReadConfigFile reads the content of a file and calls ReadConfigBytes to build the internal configuration object.
Set redefines or defines a value for a key.
Unset removes a key from the configuration map.
WriteConfigFile writes the configuration to the disc, using the given path.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author