Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyAttributeError ¶ added in v0.2.0
EmptyAttributeError is for when a required attribute is empty.
func ParseSplitError ¶ added in v0.2.0
ParseSplitError is for when failing to parse a env-line.
Types ¶
type Config ¶ added in v0.2.0
type Config struct {
// contains filtered or unexported fields
}
Config contains the given "path", "extn" and "body" of a config, as well as the parsed config --> KV map.
func (*Config) FromOsEnviron ¶ added in v0.2.0
FromOsEnviron sets s.env to the current os.Environ.
func (*Config) Key ¶ added in v0.2.0
Key returns a sort key, for use by the configs package. This makes little sense for os.Environ, so we always return "".
func (*Config) SetBodyMap ¶ added in v0.2.0
SetBodyMap creates a new env.Configs object, with the contents of a Maps object added to its EnvMaps.
func (*Config) ToBodyMap ¶ added in v0.2.0
ToBodyMap returns the parsed map, for use by the configs package.
func (*Config) ToOsEnviron ¶ added in v0.2.0
ToOsEnviron returns the config, converted to a list of "K=V" lines
Click to show internal directories.
Click to hide internal directories.