Documentation
¶
Index ¶
- type InitOption
- type Object
- func (o *Object) Contains(key string) bool
- func (o *Object) Delete(key string)
- func (o *Object) Get(key string) (any, bool)
- func (o *Object) Keys() []string
- func (o *Object) Len() int
- func (o Object) MarshalJSON() ([]byte, error)
- func (o *Object) Pairs() iter.Seq2[string, any]
- func (o *Object) Set(key string, value any)
- func (o *Object) ToMap() map[string]any
- func (o *Object) UnmarshalJSON(data []byte) error
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitOption ¶
type InitOption func(*Object)
func WithInitialData ¶
func WithInitialData(pairs ...Pair) InitOption
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...InitOption) Object
func (Object) MarshalJSON ¶
func (*Object) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.