GetGoName gets the go name for a json property name.
(subject any, name string)
| 77 | |
| 78 | // GetGoName gets the go name for a json property name. |
| 79 | func (n *GoNameProvider) GetGoName(subject any, name string) (string, bool) { |
| 80 | tpe := reflect.Indirect(reflect.ValueOf(subject)).Type() |
| 81 | |
| 82 | return n.GetGoNameForType(tpe, name) |
| 83 | } |
| 84 | |
| 85 | // GetGoNameForType gets the go name for a given type for a json property name. |
| 86 | func (n *GoNameProvider) GetGoNameForType(tpe reflect.Type, name string) (string, bool) { |