diff --git a/dataext/optional.go b/dataext/optional.go index ed89bf8..f4bad9a 100644 --- a/dataext/optional.go +++ b/dataext/optional.go @@ -3,19 +3,9 @@ package dataext import ( "encoding/json" "errors" - "gogs.mikescher.com/BlackForestBytes/goext/langext" ) -type JsonTwoWayMarshal interface { - json.Marshaler - json.Unmarshaler -} - -type JsonOptType interface { - JsonTwoWayMarshal | ~string | ~bool | langext.NumberConstraint -} - -type JsonOpt[T JsonOptType] struct { +type JsonOpt[T any] struct { isSet bool value T } diff --git a/goextVersion.go b/goextVersion.go index 8fc3c96..330419b 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.420" +const GoextVersion = "0.0.421" -const GoextVersionTimestamp = "2024-03-23T18:01:41+0100" +const GoextVersionTimestamp = "2024-03-23T20:28:51+0100"