config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Data map[string]interface{}

Data config data

Functions

func SetPath

func SetPath(path string)

SetPath Set path.

Types

type Result

type Result struct {
	Child interface{}
}

Result ...

func Decode

func Decode() *Result

Decode config

func (*Result) Array

func (get *Result) Array() []interface{}

Array Data type conversion.

func (*Result) Bool

func (get *Result) Bool() bool

Bool Data type conversion.

func (*Result) Byte added in v1.0.2

func (get *Result) Byte() byte

Byte Data type conversion.

func (*Result) Bytes added in v1.0.2

func (get *Result) Bytes() []byte

Bytes Data type conversion.

func (*Result) Float64

func (get *Result) Float64() float64

Float64 Data type conversion.

func (*Result) Get

func (get *Result) Get(name interface{}) *Result

Get config

func (*Result) Int

func (get *Result) Int() int

Int Data type conversion.

func (*Result) Int64

func (get *Result) Int64() int64

Int64 Data type conversion.

func (*Result) Ints

func (get *Result) Ints() []int

Ints Data type conversion.

func (*Result) Map

func (get *Result) Map() map[string]interface{}

Map Data type conversion.

func (*Result) Read added in v1.1.3

func (get *Result) Read(name string) *Result

Read Parse config according to point split

func (*Result) String

func (get *Result) String() string

String Data type conversion.

func (*Result) Strings

func (get *Result) Strings() []string

Strings Data type conversion.

Jump to

Keyboard shortcuts

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