Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) SetByString ¶
SetByString 从字符串解析并设置配置值
type Manager ¶
type Manager[T any] struct { // contains filtered or unexported fields }
Manager 配置管理器,支持从环境变量、命令行参数和动态映射中加载配置 优先级:默认值 < 环境变量 < 命令行参数 < 动态映射
func NewManager ¶
NewManager 创建配置管理器,自动解析环境变量和命令行参数
Click to show internal directories.
Click to hide internal directories.