Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fields ¶
type Fields string
func NewFieldsFromKVString ¶
NewFieldsFromKVString receives a kv-pipe in form `field1=value1, field2=value2...` and turn it to Fields.
func NewFieldsFromSlice ¶ added in v0.1.44
NewFieldsFromSlice construct new fields from the slice of key-values. It expects even number of parameters where each even element is a key and the next element its value.
func Parse ¶
Parse turns kvs to Fields and it doesn't care about error. If kvs is not right string the Fields will be silently empty
func (Fields) AsKVString ¶
AsKVString represents Fields as key-value string
func (Fields) Concat ¶
Concat adds fields from f1 to f using writer's w buffer for the result. It just adds all fields from f1 to f, so if f contains some fields from f1, they will added as well Use the method with extra care.
func (Fields) MergeWithMap ¶
Merge got fields f and merges them with values from map m. Result is written to Writer w and it returns result based on the buffer from w. The result cannot be stored in any collection, but copied only. Use the method with extra care.