config

package
v0.0.0-...-71dd0ca Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: Apache-2.0 Imports: 3 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 {
	Raw []byte
	// contains filtered or unexported fields
}

func LoadConfigFile

func LoadConfigFile(filename string) *Config

Loads config information from a JSON file

func LoadConfigString

func LoadConfigString(s string) *Config

Loads config information from a JSON string

func (*Config) GetArray

func (c *Config) GetArray(key string) []interface{}

Returns an array for the config variable key

func (*Config) GetBool

func (c *Config) GetBool(key string) bool

Returns a bool for the config variable key

func (*Config) GetFloat

func (c *Config) GetFloat(key string) float64

Returns a float for the config variable key

func (*Config) GetInt

func (c *Config) GetInt(key string) int64

func (*Config) GetString

func (c *Config) GetString(key string) string

Returns a string for the config variable key

Jump to

Keyboard shortcuts

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