go get github.com/juunini/palworld-settings
package main
import (
"os"
palworld_settings "github.com/juunini/palworld-settings"
)
func main() {
settingString, _ := os.ReadFile("~/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini")
setting, err := palworld_settings.Parse(string(settingString))
// Do something with setting and err
os.WriteFile("~/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini", []byte(setting.ToString()), 0644)
}