Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticConfigParser ¶
func NewStaticConfigParser(path string) *file
NewStaticConfigParser create config parser
Types ¶
type FileConfig ¶
type FileConfig struct { Path string `json:"path"` // contains filtered or unexported fields }
func (*FileConfig) Get ¶
func (c *FileConfig) Get(s string) any
func (*FileConfig) GetBool ¶
func (c *FileConfig) GetBool(key string) bool
func (*FileConfig) GetInt ¶
func (c *FileConfig) GetInt(s string) int
func (*FileConfig) GetString ¶
func (c *FileConfig) GetString(key string) string
func (*FileConfig) Parse ¶
func (c *FileConfig) Parse(obj any) error
Parse parses the configuration by object pointer
Click to show internal directories.
Click to hide internal directories.