GetGoName gets the go name for a json property name.
(subject any, name string)
| 117 | |
| 118 | // GetGoName gets the go name for a json property name. |
| 119 | func (n *NameProvider) GetGoName(subject any, name string) (string, bool) { |
| 120 | tpe := reflect.Indirect(reflect.ValueOf(subject)).Type() |
| 121 | return n.GetGoNameForType(tpe, name) |
| 122 | } |
| 123 | |
| 124 | // GetGoNameForType gets the go name for a given type for a json property name. |
| 125 | func (n *NameProvider) GetGoNameForType(tpe reflect.Type, name string) (string, bool) { |