Documentation ¶
Index ¶
- func IsDeepEqual[Old comparable, New comparable](old Old, new New, omitJsonKeys ...string) bool
- func JSONBytesEqual(a, b []byte) (bool, error)
- func WriteJsonToFile(data JSON, path string) error
- type JSON
- func (j JSON) ArrayInt() []int
- func (j JSON) Dump() any
- func (j JSON) IsEqual(dest JSON) bool
- func (j JSON) IsValid() bool
- func (j JSON) MarshalJSON() ([]byte, error)
- func (j JSON) Object() map[string]any
- func (j JSON) Out(out interface{}) error
- func (j *JSON) Scan(value interface{}) error
- func (j *JSON) Set(value interface{}) error
- func (j JSON) String() string
- func (j *JSON) UnmarshalJSON(b []byte) error
- func (j JSON) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDeepEqual ¶
func IsDeepEqual[Old comparable, New comparable](old Old, new New, omitJsonKeys ...string) bool
func JSONBytesEqual ¶
func WriteJsonToFile ¶
Types ¶
type JSON ¶
type JSON json.RawMessage
func NewEmptyObject ¶
func NewEmptyObject() JSON
func NewJSONNull ¶
func NewJSONNull() JSON
func (JSON) MarshalJSON ¶
func (*JSON) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.