Discover Packages
github.com/anggiaj/uconfig
plugins
file
package
Version:
v0.0.0-...-9601d62
Opens a new window with list of versions in this module.
Published: Oct 23, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package file provides config file support for uconfig
type File interface {
Walk(conf interface{}) error
Parse() error
}
File is a file loader plugin for uconfig
NewReader returns a uconfig plugin that unmarshals the content of
the provided io.Reader into the config using the provided unmarshal
function. The src will be closed if it is an io.Closer.
type Unmarshal func(src []byte , v interface{}) error
Unmarshal is any function that maps the source bytes to the provided
config.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.