MCPcopy
hub / github.com/openai/openai-go / newStructEncoder

Function newStructEncoder

internal/encoding/json/encode.go:783–786  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

781}
782
783func newStructEncoder(t reflect.Type) encoderFunc {
784 se := structEncoder{fields: cachedTypeFields(t)}
785 return se.encode
786}
787
788type mapEncoder struct {
789 elemEnc encoderFunc

Callers 1

newTypeEncoderFunction · 0.85

Calls 1

cachedTypeFieldsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…