v0.0.542
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m9s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m9s
This commit is contained in:
parent
9b2028ab54
commit
8a92a6cc52
@ -10,6 +10,14 @@ type JsonOpt[T any] struct {
|
|||||||
value T
|
value T
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NewJsonOpt[T any](v T) JsonOpt[T] {
|
||||||
|
return JsonOpt[T]{isSet: true, value: v}
|
||||||
|
}
|
||||||
|
|
||||||
|
func EmptyJsonOpt[T any]() JsonOpt[T] {
|
||||||
|
return JsonOpt[T]{isSet: false}
|
||||||
|
}
|
||||||
|
|
||||||
// MarshalJSON returns m as the JSON encoding of m.
|
// MarshalJSON returns m as the JSON encoding of m.
|
||||||
func (m JsonOpt[T]) MarshalJSON() ([]byte, error) {
|
func (m JsonOpt[T]) MarshalJSON() ([]byte, error) {
|
||||||
if !m.isSet {
|
if !m.isSet {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.541"
|
const GoextVersion = "0.0.542"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2024-11-05T14:38:42+0100"
|
const GoextVersionTimestamp = "2024-11-07T13:13:12+0100"
|
||||||
|
Loading…
Reference in New Issue
Block a user