MCPcopy Create free account
hub / github.com/go-openapi/jsonpointer / NameProvider

Struct NameProvider

jsonname/name_provider.go:23–26  ·  view source on GitHub ↗

NameProvider represents an object capable of translating from go property names to json property names. This type is thread-safe. See [github.com/go-openapi/jsonpointer.Pointer] for an example.

Source from the content-addressed store, hash-verified

21//
22// See [github.com/go-openapi/jsonpointer.Pointer] for an example.
23type NameProvider struct {
24 lock *sync.Mutex
25 index map[reflect.Type]nameIndex
26}
27
28type nameIndex struct {
29 jsonNames map[string]string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected