Improve configuration merge

This commit is contained in:
世界
2024-01-03 12:21:47 +08:00
parent fe053e26b5
commit 36b0f2e91a
3 changed files with 16 additions and 18 deletions
+1 -2
View File
@@ -20,8 +20,7 @@ import (
)
func parseConfig(configContent string) (option.Options, error) {
var options option.Options
err := options.UnmarshalJSON([]byte(configContent))
options, err := json.UnmarshalExtended[option.Options]([]byte(configContent))
if err != nil {
return option.Options{}, E.Cause(err, "decode config")
}