reader

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Base string
}

Dir reads config from directory

func NewDir

func NewDir(dir string) *Dir

NewDir creates new dir reader

func (*Dir) Read

func (r *Dir) Read(name string) ([]byte, error)

Read reads a config

type Env added in v1.4.0

type Env struct{}

Env reads config from env

func NewEnv added in v1.4.0

func NewEnv() *Env

NewEnv creates new env reader

func (*Env) Read added in v1.4.0

func (r *Env) Read(name string) ([]byte, error)

type YAML

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

YAML reads config from yaml file

func NewYAML

func NewYAML(r io.Reader) *YAML

NewYAML creates new yaml reader

func (*YAML) Read

func (r *YAML) Read(name string) ([]byte, error)

Read reads a config

Jump to

Keyboard shortcuts

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