This commit is contained in:
MarkJoyMa
2023-03-02 21:53:05 +08:00
committed by Kevin Wan
parent 142c46228b
commit 1ad7809fde

View File

@@ -33,7 +33,7 @@ type fieldInfo struct {
}
// 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 {
return fillDefaultUnmarshaler.Unmarshal(map[string]any{}, v)
}