diff --git a/goextVersion.go b/goextVersion.go index ba3e393..a0d1075 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.147" +const GoextVersion = "0.0.148" -const GoextVersionTimestamp = "2023-06-07T16:58:17+0200" +const GoextVersionTimestamp = "2023-06-07T17:22:38+0200" diff --git a/reflectext/primitiveStringSerializer.go b/reflectext/primitiveStringSerializer.go index ffceeb9..157c90d 100644 --- a/reflectext/primitiveStringSerializer.go +++ b/reflectext/primitiveStringSerializer.go @@ -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 }