Merge Confilct Resolution

This commit is contained in:
Steven Tracey 2025-09-24 06:58:39 -04:00
commit 228d772219

9
ini.go
View File

@ -204,6 +204,15 @@ func (config *Configuration) GetAsBooleans(path string) []bool {
return key.Bools(",") return key.Bools(",")
} }
func (config *Configuration) IsSet(path string) bool {
key, err := config.GetKey(path)
if err != nil {
return false
}
return key.Value() != ""
}
func (config *Configuration) createAndLoad(defaultConfig string) { func (config *Configuration) createAndLoad(defaultConfig string) {
_, err := os.Stat(config.fileLocation) _, err := os.Stat(config.fileLocation)
if errors.Is(err, os.ErrNotExist) { if errors.Is(err, os.ErrNotExist) {