Documentation
¶
Overview ¶
package patchset provides types to store json patch set mapping to struct fields.
Index ¶
- type PatchSet
- func (p *PatchSet) Data() map[accesstypes.Field]any
- func (p *PatchSet) Get(field accesstypes.Field) any
- func (p *PatchSet) HasKey() bool
- func (p *PatchSet) KeyData() map[accesstypes.Field]any
- func (p *PatchSet) Len() int
- func (p *PatchSet) Set(field accesstypes.Field, value any)
- func (p *PatchSet) SetKey(field accesstypes.Field, value any)
- func (p *PatchSet) StructFields() []accesstypes.Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PatchSet ¶
type PatchSet struct {
// contains filtered or unexported fields
}
func NewPatchSet ¶
func NewPatchSet(data map[accesstypes.Field]any) *PatchSet
func (*PatchSet) SetKey ¶ added in v0.2.2
func (p *PatchSet) SetKey(field accesstypes.Field, value any)
func (*PatchSet) StructFields ¶
func (p *PatchSet) StructFields() []accesstypes.Field
Click to show internal directories.
Click to hide internal directories.