Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/francoispqt/gojay
/ MarshalJSONArray
Method
MarshalJSONArray
gojay/codegen/test/basic_struct/encoding.go:43–47 ·
view source on GitHub ↗
(enc *gojay.Encoder)
Source
from the content-addressed store, hash-verified
41
}
42
43
func
(s SubMessages) MarshalJSONArray(enc *gojay.Encoder) {
44
for
i :=
range
s {
45
enc.Object(&s[i])
46
}
47
}
48
49
func
(s SubMessages) IsNil() bool {
50
return
len(s) == 0
Callers
nothing calls this directly
Calls
1
Object
Method · 0.45
Tested by
no test coverage detected