MarkJoyMa 2 years ago committed by kevin
parent 52265087d1
commit e964e530e1

@ -33,7 +33,7 @@ type fieldInfo struct {
} }
// FillDefault fills the default values for the given v, // FillDefault fills the default values for the given v,
// and the premise is that the value of v must be guaranteed to be empty // and the premise is that the value of v must be guaranteed to be empty.
func FillDefault(v any) error { func FillDefault(v any) error {
return fillDefaultUnmarshaler.Unmarshal(map[string]any{}, v) return fillDefaultUnmarshaler.Unmarshal(map[string]any{}, v)
} }

Loading…
Cancel
Save