Keyword is identical to Text except they are filtered by keywordTransform. The computed width is always len(s), regardless of the result of the result of the transform. This allows for things like coloring and other control characters in the output.
(s string)
| 270 | // the result of the result of the transform. This allows for things like |
| 271 | // coloring and other control characters in the output. |
| 272 | func Keyword(s string) Doc { |
| 273 | return keyword(s) |
| 274 | } |
no test coverage detected