refactor: rename Deserialize to MapUnmarshalValidate

This commit is contained in:
yusing
2025-04-29 01:29:02 +08:00
parent 0b69589586
commit 7aa1215491
15 changed files with 31 additions and 31 deletions

View File

@@ -220,7 +220,7 @@ func (cfg *Config) load() gperr.Error {
}
model := config.DefaultConfig()
if err := utils.DeserializeYAML(data, model); err != nil {
if err := utils.UnmarshalValidateYAML(data, model); err != nil {
gperr.LogFatal(errMsg, err)
}