FormatName formats a string as a name. Note: prefer FormatNameP below when the string is already on the heap.
(s string)
| 514 | // Note: prefer FormatNameP below when the string is already on the |
| 515 | // heap. |
| 516 | func (ctx *FmtCtx) FormatName(s string) { |
| 517 | ctx.FormatNode((*Name)(&s)) |
| 518 | } |
| 519 | |
| 520 | // FormatNameP formats a string reference as a name. |
| 521 | func (ctx *FmtCtx) FormatNameP(s *string) { |