config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSConfigFileName = "aws"
)

section key name

Variables

This section is empty.

Functions

func GetConfigValue

func GetConfigValue(section, key, df string) string

GetConfigValue gets value from laoded config

func ParseToString

func ParseToString(v interface{}) string

ParseToString converts value to string

func SetConfig

func SetConfig(conf Config)

SetConfig sets new Config

Types

type Config

type Config interface {
	// params(filename, section, key)
	GetConfigValue(string, string, string) string

	// adds config parameter
	SetValues(map[string]interface{})

	// load config parameter from file
	LoadFile(string) error
}

Config is interface for config data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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