Documentation
¶
Index ¶
- type Duration
- type Opt
- type OptTime
- func (v OptTime) Before(r OptTime) bool
- func (v OptTime) BeforeTime(r time.Time) bool
- func (v *OptTime) DecodeMsgpack(dec *msgpack.Decoder) error
- func (v *OptTime) EncodeMsgpack(enc *msgpack.Encoder) error
- func (v OptTime) IsZero() bool
- func (v OptTime) MarshalJSON() ([]byte, error)
- func (v *OptTime) UnmarshalJSON(b []byte) error
- func (v OptTime) Value() time.Time
- type String
- type StringNonZero
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶ added in v0.2.0
func (Opt[T]) MarshalJSON ¶ added in v0.2.0
func (*Opt[T]) UnmarshalJSON ¶ added in v0.2.0
type OptTime ¶ added in v0.2.0
func (*OptTime) DecodeMsgpack ¶ added in v0.2.0
func (*OptTime) EncodeMsgpack ¶ added in v0.2.0
func (OptTime) MarshalJSON ¶ added in v0.2.0
func (*OptTime) UnmarshalJSON ¶ added in v0.2.0
type StringNonZero ¶ added in v0.3.2
type StringNonZero string
StringNonZero is a string that can also be unmarshalled from a JSON integer, converting integer 0 into an empty string.
func (StringNonZero) IsZero ¶ added in v0.3.2
func (v StringNonZero) IsZero() bool
func (StringNonZero) String ¶ added in v0.3.2
func (v StringNonZero) String() string
func (*StringNonZero) UnmarshalJSON ¶ added in v0.3.2
func (v *StringNonZero) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.