Discover Packages
github.com/gokultp/go-envparser
pkg
envdecoder
package
Version:
v0.0.0-...-0a897ee
Opens a new window with list of versions in this module.
Published: Feb 10, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrDecoderNotImplemented = errors .New ("env Decoder interface is not implemented")
)
func Decode(val interface{}) error
Decode will decode environment variables to given value
type Decoder interface {
DecodeEnv() error
}
Decoder is the interface implemented by types that can decode themselves from env values.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.