envdecoder

package
v0.0.0-...-0a897ee Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDecoderNotImplemented is thrown if the type has not implemeted the Decoder interface
	ErrDecoderNotImplemented = errors.New("env Decoder interface is not implemented")
)

Functions

func Decode

func Decode(val interface{}) error

Decode will decode environment variables to given value

Types

type Decoder

type Decoder interface {
	DecodeEnv() error
}

Decoder is the interface implemented by types that can decode themselves from env values.

Jump to

Keyboard shortcuts

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