Documentation ¶
Index ¶
- type Config
- func (this *Config) All() map[string]any
- func (this *Config) Clean()
- func (this *Config) Clone() *Config
- func (this *Config) Get(name string) any
- func (this *Config) GetBool(name string) bool
- func (this *Config) GetBoolSlice(name string) []bool
- func (this *Config) GetBytes(name string) []byte
- func (this *Config) GetDuration(name string) time.Duration
- func (this *Config) GetDurationSlice(name string) []time.Duration
- func (this *Config) GetFloat32(name string) float32
- func (this *Config) GetFloat64(name string) float64
- func (this *Config) GetInt(name string) int
- func (this *Config) GetInt16(name string) int16
- func (this *Config) GetInt32(name string) int32
- func (this *Config) GetInt64(name string) int64
- func (this *Config) GetInt8(name string) int8
- func (this *Config) GetIntSlice(name string) []int
- func (this *Config) GetSlice(name string) []any
- func (this *Config) GetString(name string) string
- func (this *Config) GetStringMap(name string) map[string]any
- func (this *Config) GetStringMapBool(name string) map[string]bool
- func (this *Config) GetStringMapInt(name string) map[string]int
- func (this *Config) GetStringMapInt64(name string) map[string]int64
- func (this *Config) GetStringMapString(name string) map[string]string
- func (this *Config) GetStringMapStringSlice(name string) map[string][]string
- func (this *Config) GetStringSlice(name string) []string
- func (this *Config) GetTime(name string) time.Time
- func (this *Config) GetUint(name string) uint
- func (this *Config) GetUint16(name string) uint16
- func (this *Config) GetUint32(name string) uint32
- func (this *Config) GetUint64(name string) uint64
- func (this *Config) GetUint8(name string) uint8
- func (this *Config) Has(name string) bool
- func (this *Config) Len() int
- func (this *Config) Names() []string
- func (this *Config) Remove(name string) *Config
- func (this *Config) Set(name string, data any) *Config
- func (this *Config) String() string
- func (this *Config) WithData(data map[string]any) *Config
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 (*Config) GetBoolSlice ¶
func (*Config) GetFloat32 ¶
func (*Config) GetFloat64 ¶
func (*Config) GetIntSlice ¶
func (*Config) GetStringMapInt64 ¶
func (*Config) GetStringMapString ¶
func (*Config) GetStringMapStringSlice ¶
func (*Config) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.