This commit is contained in:
parent
b0e443ad99
commit
16146494dc
@ -3,19 +3,9 @@ package dataext
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"gogs.mikescher.com/BlackForestBytes/goext/langext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type JsonTwoWayMarshal interface {
|
type JsonOpt[T any] struct {
|
||||||
json.Marshaler
|
|
||||||
json.Unmarshaler
|
|
||||||
}
|
|
||||||
|
|
||||||
type JsonOptType interface {
|
|
||||||
JsonTwoWayMarshal | ~string | ~bool | langext.NumberConstraint
|
|
||||||
}
|
|
||||||
|
|
||||||
type JsonOpt[T JsonOptType] struct {
|
|
||||||
isSet bool
|
isSet bool
|
||||||
value T
|
value T
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user