config

package
v0.0.0-...-1d8daf6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(confName, ext, appName string) error

func Load

func Load() error

Types

type Bool

type Bool interface {
	Bool() bool
}

func RegisterBool

func RegisterBool(key string, defValue bool) Bool

type Float

type Float interface {
	Float32() float32
	Float64() float64
}

func RegisterFloat32

func RegisterFloat32(key string, defValue float32) Float

func RegisterFloat64

func RegisterFloat64(key string, defValue float64) Float

type Int

type Int interface {
	Int() int
	Int64() int64
}

func RegisterInt

func RegisterInt(key string, defValue int) Int

func RegisterInt64

func RegisterInt64(key string, defValue int64) Int

func RegisterIntMock

func RegisterIntMock(key string, defValue int) Int

type String

type String interface {
	String() string
}

func RegisterString

func RegisterString(key, defValue string) String

func RegisterStringMock

func RegisterStringMock(key, defValue string) String

Jump to

Keyboard shortcuts

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