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.
| 21 | // |
| 22 | // See [github.com/go-openapi/jsonpointer.Pointer] for an example. |
| 23 | type NameProvider struct { |
| 24 | lock *sync.Mutex |
| 25 | index map[reflect.Type]nameIndex |
| 26 | } |
| 27 | |
| 28 | type nameIndex struct { |
| 29 | jsonNames map[string]string |
nothing calls this directly
no outgoing calls
no test coverage detected