File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -351,16 +351,19 @@ func Bool(key string, value bool) KeyValue {
351
351
}
352
352
353
353
// Bytes returns a KeyValue for a []byte value.
354
+ // The passed slice must not be changed after it is passed.
354
355
func Bytes (key string , value []byte ) KeyValue {
355
356
return KeyValue {key , BytesValue (value )}
356
357
}
357
358
358
359
// Slice returns a KeyValue for a []Value value.
360
+ // The passed slice must not be changed after it is passed.
359
361
func Slice (key string , value ... Value ) KeyValue {
360
362
return KeyValue {key , SliceValue (value ... )}
361
363
}
362
364
363
365
// Map returns a KeyValue for a map value.
366
+ // The passed slice must not be changed after it is passed.
364
367
func Map (key string , value ... KeyValue ) KeyValue {
365
368
return KeyValue {key , MapValue (value ... )}
366
369
}
You can’t perform that action at this time.
0 commit comments