This commit is contained in:
2023-06-07 17:22:38 +02:00
parent 45d4fd7101
commit f7dce4a102
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ func (pss PrimitiveStringSerializer) ValueToString(v any) (string, error) {
func (pss PrimitiveStringSerializer) ValueFromString(str string, outType reflect.Type) (any, error) {
if outType.Kind() == reflect.Ptr && str == "" {
if str == "" {
return reflect.Zero(outType).Interface(), nil // = nil.(outType), nil
}