Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffixedEnvFeeder ¶
AffixedEnvFeeder is a feeder that reads environment variables with a prefix and/or suffix
func NewAffixedEnvFeeder ¶
func NewAffixedEnvFeeder(prefix, suffix string) AffixedEnvFeeder
func (AffixedEnvFeeder) Feed ¶
func (f AffixedEnvFeeder) Feed(structure interface{}) error
type DotEnvFeeder ¶
DotEnvFeeder is a feeder that reads .env files
func NewDotEnvFeeder ¶
func NewDotEnvFeeder(filePath string) DotEnvFeeder
type EnvFeeder ¶
EnvFeeder is a feeder that reads environment variables
func NewEnvFeeder ¶
func NewEnvFeeder() EnvFeeder
type JsonFeeder ¶
JsonFeeder is a feeder that reads JSON files
func NewJsonFeeder ¶
func NewJsonFeeder(filePath string) JsonFeeder
func (JsonFeeder) FeedKey ¶
func (j JsonFeeder) FeedKey(key string, target interface{}) error
FeedKey reads a JSON file and extracts a specific key
type TomlFeeder ¶
TomlFeeder is a feeder that reads TOML files
func NewTomlFeeder ¶
func NewTomlFeeder(filePath string) TomlFeeder
func (TomlFeeder) FeedKey ¶
func (t TomlFeeder) FeedKey(key string, target interface{}) error
FeedKey reads a TOML file and extracts a specific key
type YamlFeeder ¶
YamlFeeder is a feeder that reads YAML files
func NewYamlFeeder ¶
func NewYamlFeeder(filePath string) YamlFeeder
func (YamlFeeder) FeedKey ¶
func (y YamlFeeder) FeedKey(key string, target interface{}) error
FeedKey reads a YAML file and extracts a specific key
Click to show internal directories.
Click to hide internal directories.