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

Method SliceIntKey

encode_slice.go:51–57  ·  view source on GitHub ↗

SliceIntKey marshals the given []int s

(k string, s []int)

Source from the content-addressed store, hash-verified

49
50// SliceIntKey marshals the given []int s
51func (enc *Encoder) SliceIntKey(k string, s []int) {
52 enc.ArrayKey(k, EncodeArrayFunc(func(enc *Encoder) {
53 for _, i := range s {
54 enc.Int(i)
55 }
56 }))
57}
58
59// AddSliceFloat64 marshals the given []float64 s
60func (enc *Encoder) AddSliceFloat64(s []float64) {

Callers 1

AddSliceIntKeyMethod · 0.95

Calls 3

ArrayKeyMethod · 0.95
IntMethod · 0.95
EncodeArrayFuncFuncType · 0.85

Tested by

no test coverage detected