config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 8 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(filePath string)

SetPath Set path.

Types

type Config added in v1.2.8

type Config struct {
	Child interface{}
}

Result ...

func Decode

func Decode() *Config

Decode config

func (*Config) Array added in v1.2.8

func (c *Config) Array() []interface{}

Array Data type conversion.

func (*Config) Bool added in v1.2.8

func (c *Config) Bool() bool

Bool Data type conversion.

func (*Config) Byte added in v1.2.8

func (c *Config) Byte() byte

Byte Data type conversion.

func (*Config) Bytes added in v1.2.8

func (c *Config) Bytes() []byte

Bytes Data type conversion.

func (*Config) End added in v1.3.0

func (c *Config) End()

End Data type conversion.

func (*Config) Float64 added in v1.2.8

func (c *Config) Float64() float64

Float64 Data type conversion.

func (*Config) Get added in v1.2.8

func (c *Config) Get(name string) *Config

Get Parse config according to point split

func (*Config) Int added in v1.2.8

func (c *Config) Int() int

Int Data type conversion.

func (*Config) Int64 added in v1.2.8

func (c *Config) Int64() int64

Int64 Data type conversion.

func (*Config) Interface added in v1.3.0

func (c *Config) Interface() interface{}

Interface Data type conversion.

func (*Config) Interfaces added in v1.3.0

func (c *Config) Interfaces() []interface{}

Interfaces Data type conversion.

func (*Config) Ints added in v1.2.8

func (c *Config) Ints() []int

Ints Data type conversion.

func (*Config) Map added in v1.2.8

func (c *Config) Map() map[string]interface{}

Map Data type conversion.

func (*Config) Maps added in v1.3.0

func (c *Config) Maps() []map[string]interface{}

Maps Data type conversion.

func (*Config) Next added in v1.3.0

func (c *Config) Next(name interface{}) *Config

Next config

func (*Config) String added in v1.2.8

func (c *Config) String() string

String Data type conversion.

func (*Config) Strings added in v1.2.8

func (c *Config) Strings() []string

Strings Data type conversion.

func (*Config) Uint added in v1.2.8

func (c *Config) Uint() uint

Uint Data type conversion.

func (*Config) Uint16 added in v1.2.8

func (c *Config) Uint16() uint16

Uint Data type conversion.

func (*Config) Uint32 added in v1.2.8

func (c *Config) Uint32() uint32

Uint Data type conversion.

func (*Config) Uint64 added in v1.2.8

func (c *Config) Uint64() uint64

Uint Data type conversion.

func (*Config) Uint8 added in v1.2.8

func (c *Config) Uint8() uint8

Uint Data type conversion.

Jump to

Keyboard shortcuts

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