Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NoValue is used if requested ENV var doesn't exist NoValue = "" // CwdFailureError signals that the current working directory can not be determined CwdFailureError = 1 // CantAccessEnvFileError signals that the env file exists but can not be accessed CantAccessEnvFileError = 2 // NoEnvFileError signals that no env file exists in any of the parent directories NoEnvFileError = 3 // CantLoadEnvFileError signals that the env file exists and can be accessed but not parsed and exported CantLoadEnvFileError = 4 // NoSuchEnvVarError signals that the requested ENV var doesn't exist NoSuchEnvVarError = 5 )
Variables ¶
This section is empty.
Functions ¶
func InitFromFile ¶
InitFromFile looks for custom ENV file and extracts ENV variables from it.
Types ¶
Click to show internal directories.
Click to hide internal directories.