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

Method Value

encoding/json/array.go:22–30  ·  view source on GitHub ↗

Value adds a new element to the JSON Array. Returns a Value type that is used to encode the array element.

()

Source from the content-addressed store, hash-verified

20// Returns a Value type that is used to encode
21// the array element.
22func (a *Array) Value() Value {
23 if a.writeComma {
24 a.w.WriteRune(comma)
25 } else {
26 a.writeComma = true
27 }
28
29 return newValue(a.w, a.scratch)
30}
31
32// Close encodes the end of the JSON Array
33func (a *Array) Close() {

Callers 8

TestArrayFunction · 0.45
TestValueFunction · 0.45
TestWithContextFunction · 0.45
GetValueMethod · 0.45
GetValueMethod · 0.45
getLineageFunction · 0.45
GetOperationTracerFunction · 0.45

Calls 2

newValueFunction · 0.70
WriteRuneMethod · 0.65

Tested by 3

TestArrayFunction · 0.36
TestValueFunction · 0.36
TestWithContextFunction · 0.36