(name string, options *opts.Options)
| 42 | } |
| 43 | |
| 44 | func JSONTagName(name string, options *opts.Options) string { |
| 45 | style := options.JsonTagsCaseStyle |
| 46 | idUppercase := options.JsonTagsIdUppercase |
| 47 | if style == "" || style == "none" { |
| 48 | return name |
| 49 | } else { |
| 50 | return SetJSONCaseStyle(name, style, idUppercase) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func SetCaseStyle(name string, style string) string { |
| 55 | switch style { |
no test coverage detected