config

package
v0.0.0-...-16d328e Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2014 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(f *goconfig.ConfigFile, key string, section string) (bool, error)

func GetConfFile

func GetConfFile(configfilepath string) (c *goconfig.ConfigFile, err error)

func GetInt64

func GetInt64(f *goconfig.ConfigFile, key string, section string) (int64, error)

func GetString

func GetString(f *goconfig.ConfigFile, key string, section string) (string, error)

func GetVarsBoolean

func GetVarsBoolean(key string) (b bool, ok bool)

func GetVarsInteger

func GetVarsInteger(key string) (i int, ok bool)

func GetVarsString

func GetVarsString(key string) (s string, ok bool)

func InitCfgVars

func InitCfgVars(configfilepath string) error

func SetVarsBoolean

func SetVarsBoolean(key string, b bool)

func SetVarsInteger

func SetVarsInteger(key string, i int)

func SetVarsString

func SetVarsString(key, s string)

Types

type RunVars

type RunVars struct {
	TstInt  int
	TstStr  string
	TstBool bool
}

type Vars

type Vars struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func GetVars

func GetVars() *Vars

func New

func New() *Vars

func (*Vars) GetVarsBool

func (v *Vars) GetVarsBool(key string) (b bool, ok bool)

func (*Vars) GetVarsInt

func (v *Vars) GetVarsInt(key string) (i int, ok bool)

func (*Vars) GetVarsStr

func (v *Vars) GetVarsStr(key string) (s string, ok bool)

func (*Vars) SetVarsBool

func (v *Vars) SetVarsBool(key string, b bool)

func (*Vars) SetVarsInt

func (v *Vars) SetVarsInt(key string, i int)

func (*Vars) SetVarsStr

func (v *Vars) SetVarsStr(key, s string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳