cfg

package
v0.0.0-...-0e7c249 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 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 Config

type Config struct {
	Data map[string]interface{}
}

func New

func New() *Config

func (*Config) Decode

func (c *Config) Decode(out interface{}) error

func (*Config) LoadFile

func (c *Config) LoadFile(filename string) error

func (*Config) LoadGlob

func (c *Config) LoadGlob(pattern string) error

func (*Config) LoadJSON

func (c *Config) LoadJSON(data []byte) error

func (*Config) LoadJSONString

func (c *Config) LoadJSONString(s string) error

func (*Config) LoadTOML

func (c *Config) LoadTOML(data []byte) error

func (*Config) LoadTOMLString

func (c *Config) LoadTOMLString(s string) error

func (*Config) LoadYAML

func (c *Config) LoadYAML(data []byte) error

func (*Config) LoadYAMLString

func (c *Config) LoadYAMLString(s string) error

Jump to

Keyboard shortcuts

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