file

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

type Config struct {
	Child interface{}
}

Config ...

func Decode

func Decode() *Config

Decode config

func (*Config) Array

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

Array Data type conversion.

func (*Config) Bool

func (c *Config) Bool() bool

Bool Data type conversion.

func (*Config) Byte

func (c *Config) Byte() byte

Byte Data type conversion.

func (*Config) Bytes

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

Bytes Data type conversion.

func (*Config) End

func (c *Config) End()

End Data type conversion.

func (*Config) Float64

func (c *Config) Float64() float64

Float64 Data type conversion.

func (*Config) Get

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

Get Parse config according to point split

func (*Config) Int

func (c *Config) Int() int

Int Data type conversion.

func (*Config) Int64

func (c *Config) Int64() int64

Int64 Data type conversion.

func (*Config) Interface

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

Interface Data type conversion.

func (*Config) Interfaces

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

Interfaces Data type conversion.

func (*Config) Ints

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

Ints Data type conversion.

func (*Config) Map

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

Map Data type conversion.

func (*Config) Maps

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

Maps Data type conversion.

func (*Config) Next

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

Next config

func (*Config) String

func (c *Config) String() string

String Data type conversion.

func (*Config) Strings

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

Strings Data type conversion.

func (*Config) Uint

func (c *Config) Uint() uint

Uint Data type conversion.

func (*Config) Uint16

func (c *Config) Uint16() uint16

Uint Data type conversion.

func (*Config) Uint32

func (c *Config) Uint32() uint32

Uint Data type conversion.

func (*Config) Uint64

func (c *Config) Uint64() uint64

Uint Data type conversion.

func (*Config) Uint8

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