config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 16 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertData

func ConvertData(input, output interface{}, tag string) error

ConvertData .

func EscapeEnv

func EscapeEnv(contents []byte) []byte

EscapeEnv .

func LoadEnvFile

func LoadEnvFile()

LoadEnvFile .

func LoadEnvFileWithPath added in v1.1.1

func LoadEnvFileWithPath(path string, override bool)

LoadEnvFileWithPath .

func LoadFile

func LoadFile(path string) ([]byte, error)

LoadFile .

func LoadToMap

func LoadToMap(path string, c map[string]interface{}) error

LoadToMap .

func TrimBOM

func TrimBOM(f []byte) []byte

TrimBOM .

func UnmarshalToMap

func UnmarshalToMap(in io.Reader, typ string, c map[string]interface{}) (err error)

UnmarshalToMap .

Types

type ParseError

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

ParseError denotes failing to parse configuration file.

func (ParseError) Error

func (pe ParseError) Error() string

Error returns the formatted configuration error.

Jump to

Keyboard shortcuts

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