env

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnvFile

func LoadEnvFile(path string, panicOnFailure bool) error

LoadEnvFile - Tries to load an env file from a path given, if panicOnFailure == true panic istead returning error

Types

type LoadEnvFileError

type LoadEnvFileError struct {
	// contains filtered or unexported fields
}

LoadEnvFileError - Defines a struct for failed load env file

func NewLoadEnvFileError

func NewLoadEnvFileError(msg string) *LoadEnvFileError

NewLoadEnvFileError - Returns a new instance of LoadEnvFileError

func (*LoadEnvFileError) Error

func (l *LoadEnvFileError) Error() string

Error - Implements error interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL