Documentation
¶
Index ¶
- func ToMapInterface(obj interface{}) (map[string]interface{}, error)
- type GenericMap
- func (in GenericMap) DeepCopy() GenericMap
- func (in *GenericMap) DeepCopyInto(out *GenericMap)
- func (g *GenericMap) GetData() map[string]any
- func (g *GenericMap) MarshalJSON() ([]byte, error)
- func (g *GenericMap) Merge(from *GenericMap) *GenericMap
- func (GenericMap) OpenAPIDefinition() common.OpenAPIDefinition
- func (g *GenericMap) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMapInterface ¶
Types ¶
type GenericMap ¶
func Mapify ¶
func Mapify(data any) (GenericMap, error)
func NewGenericMap ¶
func NewGenericMap(data map[string]any) *GenericMap
func (GenericMap) DeepCopy ¶
func (in GenericMap) DeepCopy() GenericMap
func (*GenericMap) DeepCopyInto ¶
func (in *GenericMap) DeepCopyInto(out *GenericMap)
func (*GenericMap) GetData ¶
func (g *GenericMap) GetData() map[string]any
GetData returns the underlying map[string]any and nil if the GenericMap is nil.
func (*GenericMap) MarshalJSON ¶
func (g *GenericMap) MarshalJSON() ([]byte, error)
MarshalJSON may get called on pointers or values, so implement MarshalJSON on value.
func (*GenericMap) Merge ¶
func (g *GenericMap) Merge(from *GenericMap) *GenericMap
Merge merges the given map into this map, returning a new map, leaving the original unchanged.
func (GenericMap) OpenAPIDefinition ¶
func (GenericMap) OpenAPIDefinition() common.OpenAPIDefinition
func (*GenericMap) UnmarshalJSON ¶
func (g *GenericMap) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.