From 16146494dcd0b05082065b133aa86cad9c623954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 23 Mar 2024 20:28:51 +0100 Subject: [PATCH] v0.0.421 --- dataext/optional.go | 12 +----------- goextVersion.go | 4 ++-- 2 files changed, 3 insertions(+), 13 deletions(-) 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"