rake

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 8 Imported by: 0

README

Rake : Simple, Extensible Go Configuration library

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 IterConfig

func IterConfig(cfg interface{}, editFunc EditStructFieldFunc)

func LoadSources

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

func YamlFileSource

func YamlFileSource(filepath string) *yamlSource

func YamlFileWriter added in v0.2.3

func YamlFileWriter(filepath string) *yamlWriter

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