config

package
v0.0.0-...-deee4d6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 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 {
	// contains filtered or unexported fields
}

Config contains config info.

func LoadConfig

func LoadConfig(file string) (*Config, error)

LoadConfig load the config file.

func (*Config) GetBool

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

GetBool get bool value from config file with section and key.

func (*Config) GetInt

func (c *Config) GetInt(section, key string) int

GetInt get int value from config file with section and key.

func (*Config) GetString

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

GetString get string value from config file with section and key.

Jump to

Keyboard shortcuts

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