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