MCPcopy Create free account
hub / github.com/aws/smithy-go / newArray

Function newArray

encoding/json/array.go:14–17  ·  view source on GitHub ↗
(w *bytes.Buffer, scratch *[]byte)

Source from the content-addressed store, hash-verified

12}
13
14func newArray(w *bytes.Buffer, scratch *[]byte) *Array {
15 w.WriteRune(leftBracket)
16 return &Array{w: w, scratch: scratch}
17}
18
19// Value adds a new element to the JSON Array.
20// Returns a Value type that is used to encode

Callers 2

ArrayMethod · 0.70
TestArrayFunction · 0.70

Calls 1

WriteRuneMethod · 0.65

Tested by 1

TestArrayFunction · 0.56