json

package
v0.0.0-...-474e430 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: MIT Imports: 2 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 {
	*loader.Config
}

Config is config struct for json format

func NewConfig

func NewConfig() *Config

NewConfig creates new Config for json

func (*Config) GetConfigValue

func (c *Config) GetConfigValue(section, key, df string) string

GetConfigValue gets value from loaded config

func (*Config) LoadFile

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

LoadFile loads data from the file of given path

func (*Config) SetValues

func (c *Config) SetValues(data map[string]interface{})

SetValues adds config values

Jump to

Keyboard shortcuts

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