config

package
v1.0.4030 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

*

  • 配置 *
  • @create 2023-2-13
  • @author deatil

func New

func New() *Config

func (*Config) All

func (this *Config) All() map[string]any

func (*Config) Clean

func (this *Config) Clean()

func (*Config) Clone

func (this *Config) Clone() *Config

func (*Config) Get

func (this *Config) Get(name string) any

func (*Config) GetBool

func (this *Config) GetBool(name string) bool

func (*Config) GetBoolSlice

func (this *Config) GetBoolSlice(name string) []bool

func (*Config) GetBytes

func (this *Config) GetBytes(name string) []byte

func (*Config) GetDuration

func (this *Config) GetDuration(name string) time.Duration

func (*Config) GetDurationSlice

func (this *Config) GetDurationSlice(name string) []time.Duration

func (*Config) GetFloat32

func (this *Config) GetFloat32(name string) float32

func (*Config) GetFloat64

func (this *Config) GetFloat64(name string) float64

func (*Config) GetInt

func (this *Config) GetInt(name string) int

func (*Config) GetInt16

func (this *Config) GetInt16(name string) int16

func (*Config) GetInt32

func (this *Config) GetInt32(name string) int32

func (*Config) GetInt64

func (this *Config) GetInt64(name string) int64

func (*Config) GetInt8

func (this *Config) GetInt8(name string) int8

func (*Config) GetIntSlice

func (this *Config) GetIntSlice(name string) []int

func (*Config) GetSlice

func (this *Config) GetSlice(name string) []any

func (*Config) GetString

func (this *Config) GetString(name string) string

func (*Config) GetStringMap

func (this *Config) GetStringMap(name string) map[string]any

func (*Config) GetStringMapBool

func (this *Config) GetStringMapBool(name string) map[string]bool

func (*Config) GetStringMapInt

func (this *Config) GetStringMapInt(name string) map[string]int

func (*Config) GetStringMapInt64

func (this *Config) GetStringMapInt64(name string) map[string]int64

func (*Config) GetStringMapString

func (this *Config) GetStringMapString(name string) map[string]string

func (*Config) GetStringMapStringSlice

func (this *Config) GetStringMapStringSlice(name string) map[string][]string

func (*Config) GetStringSlice

func (this *Config) GetStringSlice(name string) []string

func (*Config) GetTime

func (this *Config) GetTime(name string) time.Time

func (*Config) GetUint

func (this *Config) GetUint(name string) uint

func (*Config) GetUint16

func (this *Config) GetUint16(name string) uint16

func (*Config) GetUint32

func (this *Config) GetUint32(name string) uint32

func (*Config) GetUint64

func (this *Config) GetUint64(name string) uint64

func (*Config) GetUint8

func (this *Config) GetUint8(name string) uint8

func (*Config) Has

func (this *Config) Has(name string) bool

func (*Config) Len

func (this *Config) Len() int

func (*Config) Names

func (this *Config) Names() []string

func (*Config) Remove

func (this *Config) Remove(name string) *Config

删除

func (*Config) Set

func (this *Config) Set(name string, data any) *Config

设置

func (*Config) String

func (this *Config) String() string

func (*Config) WithData

func (this *Config) WithData(data map[string]any) *Config

设置

Jump to

Keyboard shortcuts

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