FormatName formats a string as a name. Note: prefer FormatNameP below when the string is already on the heap.
(s string)
| 363 | // Note: prefer FormatNameP below when the string is already on the |
| 364 | // heap. |
| 365 | func (ctx *FmtCtx) FormatName(s string) { |
| 366 | ctx.FormatNode((*Name)(&s)) |
| 367 | } |
| 368 | |
| 369 | // FormatNameP formats a string reference as a name. |
| 370 | func (ctx *FmtCtx) FormatNameP(s *string) { |
nothing calls this directly
no test coverage detected