Documentation
¶
Index ¶
- func CreateTOMLFile(path string, sections map[string]map[string]interface{}) error
- func GetTOMLSection(path string, sectionName string) (map[string]interface{}, error)
- func ReadTOML(path string, v interface{}) error
- func UpdateTOMLSection(path string, sectionName string, updates map[string]interface{}) error
- func WriteTOML(path string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTOMLFile ¶
CreateTOMLFile creates a new TOML file with the given sections if it doesn't exist. If the file already exists, it does nothing.
func GetTOMLSection ¶
GetTOMLSection reads a TOML file and returns a specific section.
func UpdateTOMLSection ¶
UpdateTOMLSection updates a specific section in a TOML file. If the section doesn't exist, it will be created.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.