Documentation ¶
Index ¶
- func ValueForEmptyJson() json.RawMessage
- type GechoLogObject
- func (o *GechoLogObject) AssignField(field string, v any) error
- func (o *GechoLogObject) AssignFieldRaw(field string, jrm json.RawMessage) error
- func (o *GechoLogObject) DebugString() string
- func (g *GechoLogObject) FieldNames() []string
- func (o *GechoLogObject) GetField(field string) (json.RawMessage, error)
- func (o *GechoLogObject) IsEmpty() bool
- func (o *GechoLogObject) MarshalJSON() ([]byte, error)
- func (o *GechoLogObject) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValueForEmptyJson ¶
func ValueForEmptyJson() json.RawMessage
Can be used to create valid emty json string
Types ¶
type GechoLogObject ¶
type GechoLogObject struct {
// contains filtered or unexported fields
}
func AppendNew ¶
func AppendNew(g GechoLogObject, o GechoLogObject) GechoLogObject
Creats a new g + Adds non-overlapping fields from o
func Filter ¶
func Filter(g GechoLogObject, fieldsToInclude []string) GechoLogObject
Creates a new object from g without fields in the slice of strings
func New ¶
func New() GechoLogObject
func Replace ¶
func Replace(g GechoLogObject, o GechoLogObject) GechoLogObject
Creates a new g with replacing overlappning fields from o
func (*GechoLogObject) AssignField ¶
func (o *GechoLogObject) AssignField(field string, v any) error
Assign key = field to value = json.Marshalled v
func (*GechoLogObject) AssignFieldRaw ¶
func (o *GechoLogObject) AssignFieldRaw(field string, jrm json.RawMessage) error
assign key-value par for field->jrm
func (*GechoLogObject) DebugString ¶
func (o *GechoLogObject) DebugString() string
Prints a convenient string
func (*GechoLogObject) FieldNames ¶
func (g *GechoLogObject) FieldNames() []string
Returns a slice with the list of field names
func (*GechoLogObject) GetField ¶
func (o *GechoLogObject) GetField(field string) (json.RawMessage, error)
Getter for field
func (*GechoLogObject) IsEmpty ¶
func (o *GechoLogObject) IsEmpty() bool
func (*GechoLogObject) MarshalJSON ¶
func (o *GechoLogObject) MarshalJSON() ([]byte, error)
func (*GechoLogObject) UnmarshalJSON ¶
func (o *GechoLogObject) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.