goifyTerms makes valid go identifiers out of the supplied terms
(terms ...string)
| 566 | |
| 567 | // goifyTerms makes valid go identifiers out of the supplied terms |
| 568 | func goifyTerms(terms ...string) string { |
| 569 | res := codegen.Goify(terms[0], false) |
| 570 | if len(terms) == 1 { |
| 571 | return res |
| 572 | } |
| 573 | for _, t := range terms[1:] { |
| 574 | res += codegen.Goify(t, true) |
| 575 | } |
| 576 | return res |
| 577 | } |
| 578 | |
| 579 | func printDescription(desc string) string { |
| 580 | res := strings.ReplaceAll(desc, "`", "`+\"`\"+`") |
no test coverage detected