package
1.5.0
Repository: https://github.com/sunggun-yu/envp.git
Documentation: pkg.go.dev

# Functions

MapToEnv parse string map to slice of Env.
NewConfigFile returns ConfigFile.
NewDefaultProfileNotSetError create new DefaultProfileNotSetError.
NewProfile creates the Profile.
NewProfileNameInputEmptyError create new ProfileNameInputEmptyError.
NewProfileNotExistingError create new ProfileNotExistingError.
ParseEnvFlagToEnv parse slice of string "var=val" to []ENV.
ParseEnvFlagToMap parse string format "env=val" to map "env: val".
SortEnv sort []Env by name asc.

# Structs

Config is struct that represents configuration of config file.
ConfigFile is struct that representing the envp config file It contains Config and perform read and save operation.
DefaultProfileNotSetError is error when default profile is not set.
Env represent environment variable name and value go yaml doesn't support capitalized key.
NamedProfile is struct that embed Profile to add it's name and other useful properties.
Profile is struct of profile TODO: linked list might be better.
ProfileNameInputEmptyError is an error when mandatory profile input is empty.
ProfileNotExistingError is an error when expected profile is not existing.

# Type aliases

Envs is slice of Env.
Profiles is map of profile.