rake

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 9 Imported by: 0

README

logo

ReportCard Doc

Rake : Simple Powerful Extensible Go Configuration

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugWriter added in v0.2.0

func DebugWriter(writer io.Writer) *debugWriter

func DefaultSource

func DefaultSource() *defaultSource

func EnvSource added in v0.2.8

func EnvSource(prefix string) *envSource

func IterConfig

func IterConfig(cfg interface{}, editFunc EditStructFieldFunc)

func LoadSources

func LoadSources(cfg interface{}, sources ...Source)

func LocalMap added in v0.2.4

func LocalMap(local map[string]interface{}) *localMap

func YamlFileSource

func YamlFileSource(filepath string) *yamlSource

func YamlFileWriter added in v0.2.3

func YamlFileWriter(filepath string) *yamlWriter

func YamlMustFileSource added in v0.2.6

func YamlMustFileSource(filepath string) *yamlMustSource

Types

type EditStructFieldFunc

type EditStructFieldFunc func(attrPtr interface{}, path Path, tags map[string]string)

type Path

type Path []string

type Source

type Source interface {
	Load(configPtr interface{})
}

Jump to

Keyboard shortcuts

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