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

Function NewNameProvider

jsonname/name_provider.go:34–39  ·  view source on GitHub ↗

NewNameProvider creates a new name provider.

()

Source from the content-addressed store, hash-verified

32
33// NewNameProvider creates a new name provider.
34func NewNameProvider() *NameProvider {
35 return &NameProvider{
36 lock: &sync.Mutex{},
37 index: make(map[reflect.Type]nameIndex),
38 }
39}
40
41func buildnameIndex(tpe reflect.Type, idx, reverseIdx map[string]string) {
42 for i := range tpe.NumField() {

Callers 2

name_provider.goFile · 0.85
TestNameProviderFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNameProviderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…