MarkJoyMa 2 years ago committed by Kevin Wan
parent 142c46228b
commit 1ad7809fde

@ -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