conf

package
v0.0.0-...-d749c53 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolParameter

func BoolParameter(sec, name string) (val bool, err error)

BoolParameter returns the value of the parameter as a bool legal values are 0,1,true,false,yes,no (case insensitive)

func Float64ArrayParameter

func Float64ArrayParameter(sec, name string) (val []float64, err error)

Float64ArrayParameter returns the value of the parameter as a slice of float64s

func Float64Parameter

func Float64Parameter(sec, name string) (val float64, err error)

Float64Parameter returns the value of the parameter as a float64

func Init

func Init(file string) (err error)

InitConfig parses the configuration file, returning any error encountered

func IntArrayParameter

func IntArrayParameter(sec, name string) (val []int, err error)

IntArrayParameter returns the value of the parameter as a slice of int64s

func IntParameter

func IntParameter(sec, name string) (val int, err error)

IntParameter returns the value of the parameter as an int

func StringParameter

func StringParameter(sec, name string) (val string, err error)

StringParameter returns the value of a given parameter as a string

func UintParameter

func UintParameter(sec, name string) (val uint, err error)

UintParameter returns the value of the parameter as an uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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