Documentation ¶
Index ¶
- type A
- type Optional
- func (v Optional) Get(deflt A) A
- func (v Optional) IsDefined() bool
- func (v Optional) MarshalJSON() ([]byte, error)
- func (v Optional) MarshalPartialJSON(w *jwriter.Writer)
- func (v Optional) String() string
- func (v *Optional) UnMarshalPartialJSON(l *jlexer.Lexer)
- func (v *Optional) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Optional ¶
A 'gotemplate'-based type for providing optional semantics without using pointers.
func (Optional) IsDefined ¶
IsDefined returns whether the value is defined, a function is required so that it can be used in an interface.
func (Optional) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (Optional) MarshalPartialJSON ¶
MarshalPartialJSON does JSON marshaling using partialencode interface.
func (*Optional) UnMarshalPartialJSON ¶
UnMarshalPartialJSON does JSON unmarshaling using partialencode interface.
func (*Optional) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.