This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user