gocfg

package module
Version: v0.0.0-...-bc9039a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: MIT Imports: 8 Imported by: 0

README

gocfg

Get multi-file JSON format configuration

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(data interface{}, path string) (interface{}, error)

func ParseJsonFile

func ParseJsonFile(filename string) (interface{}, error)

Types

type Config

type Config struct {
	SourceFiles []string
}

func NewConfig

func NewConfig(files ...string) Config

func (Config) Get

func (c Config) Get(path string, out interface{}) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL