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

Method SliceString

encode_slice.go:9–15  ·  view source on GitHub ↗

SliceString marshals the given []string s

(s []string)

Source from the content-addressed store, hash-verified

7
8// SliceString marshals the given []string s
9func (enc *Encoder) SliceString(s []string) {
10 enc.Array(EncodeArrayFunc(func(enc *Encoder) {
11 for _, str := range s {
12 enc.String(str)
13 }
14 }))
15}
16
17// AddSliceStringKey marshals the given []string s
18func (enc *Encoder) AddSliceStringKey(k string, s []string) {

Callers 1

AddSliceStringMethod · 0.95

Calls 3

ArrayMethod · 0.95
StringMethod · 0.95
EncodeArrayFuncFuncType · 0.85

Tested by

no test coverage detected