Documentation ¶
Index ¶
- type EnvironmentReaderWrapper
- func (reader *EnvironmentReaderWrapper) GetenvBytes(key string, shouldPanicOnError bool) ([]byte, error)
- func (reader EnvironmentReaderWrapper) GetenvInt(key string, defaultVal int) (int, error)
- func (reader EnvironmentReaderWrapper) GetenvIntStrict(key string) int
- func (reader EnvironmentReaderWrapper) GetenvStr(key string, defaultVal string) (string, error)
- func (reader EnvironmentReaderWrapper) GetenvStrStrict(key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentReaderWrapper ¶
type EnvironmentReaderWrapper struct{}
EnvironmentReaderWrapper Wraps the os dependency that reads environment variables
func (*EnvironmentReaderWrapper) GetenvBytes ¶
func (reader *EnvironmentReaderWrapper) GetenvBytes(key string, shouldPanicOnError bool) ([]byte, error)
GetenvBytes Get bytes value from environment
func (EnvironmentReaderWrapper) GetenvInt ¶
func (reader EnvironmentReaderWrapper) GetenvInt(key string, defaultVal int) (int, error)
GetenvInt Get integer value from environment
func (EnvironmentReaderWrapper) GetenvIntStrict ¶
func (reader EnvironmentReaderWrapper) GetenvIntStrict(key string) int
GetenvIntStrict Get integer value from environment with panic on failure
func (EnvironmentReaderWrapper) GetenvStr ¶
func (reader EnvironmentReaderWrapper) GetenvStr(key string, defaultVal string) (string, error)
GetenvStr Get string value from environment
func (EnvironmentReaderWrapper) GetenvStrStrict ¶
func (reader EnvironmentReaderWrapper) GetenvStrStrict(key string) string
GetenvStrStrict Get string value from environment with panic on failure
Click to show internal directories.
Click to hide internal directories.