MCPcopy Create free account
hub / github.com/francoispqt/gojay / SliceStringKey

Method SliceStringKey

encode_slice.go:23–29  ·  view source on GitHub ↗

SliceStringKey marshals the given []string s

(k string, s []string)

Source from the content-addressed store, hash-verified

21
22// SliceStringKey marshals the given []string s
23func (enc *Encoder) SliceStringKey(k string, s []string) {
24 enc.ArrayKey(k, EncodeArrayFunc(func(enc *Encoder) {
25 for _, str := range s {
26 enc.String(str)
27 }
28 }))
29}
30
31// AddSliceInt marshals the given []int s
32func (enc *Encoder) AddSliceInt(s []int) {

Callers 1

AddSliceStringKeyMethod · 0.95

Calls 3

ArrayKeyMethod · 0.95
StringMethod · 0.95
EncodeArrayFuncFuncType · 0.85

Tested by

no test coverage detected