Documentation
¶
Index ¶
- func ConfigPath(t cfg.ConfigType) string
- func ConfigType() cfg.ConfigType
- func IsOverwrite() bool
- func Marshal(data map[string]any) ([]byte, error)
- func OpenConfig(configType config.ConfigType) (*os.File, error)
- func WriteFileWithCheck(configType config.ConfigType, data map[string]any) error
- func WriteToFile(path string, data map[string]any) error
- func WriteToHandle(handle *os.File, data map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath(t cfg.ConfigType) string
func ConfigType ¶
func ConfigType() cfg.ConfigType
func IsOverwrite ¶
func IsOverwrite() bool
func OpenConfig ¶
func OpenConfig(configType config.ConfigType) (*os.File, error)
func WriteFileWithCheck ¶
func WriteFileWithCheck(configType config.ConfigType, data map[string]any) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.