feeder

package
v3.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 8 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DotEnv

type DotEnv struct {
	Path string
}

DotEnv is a feeder. It feeds using dot env (.env) files.

func (DotEnv) Feed

func (f DotEnv) Feed(structure interface{}) error

type Env

type Env struct{}

Env is a feeder. It feeds using OS environment variables.

func (Env) Feed

func (f Env) Feed(structure interface{}) error

type Json

type Json struct {
	Path string
}

Json is a feeder. It feeds using a JSON file.

func (Json) Feed

func (f Json) Feed(structure interface{}) error

type Toml added in v3.1.0

type Toml struct {
	Path string
}

Toml is a feeder. It feeds using a TOML file.

func (Toml) Feed added in v3.1.0

func (f Toml) Feed(structure interface{}) error

type Yaml

type Yaml struct {
	Path string
}

Yaml is a feeder. It feeds using a YAML file.

func (Yaml) Feed

func (f Yaml) Feed(structure interface{}) error

Jump to

Keyboard shortcuts

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