String returns a string of n tabs or n*width spaces depending on the indent character.
(ich Character, n, width int)
| 45 | |
| 46 | // String returns a string of n tabs or n*width spaces depending on the indent character. |
| 47 | func String(ich Character, n, width int) string { |
| 48 | if ich == Tab { |
| 49 | return Tabs(n) |
| 50 | } |
| 51 | return Spaces(n, width) |
| 52 | } |
| 53 | |
| 54 | // Bytes returns []byte of n tabs or n*width spaces depending on the indent character. |
| 55 | func Bytes(ich Character, n, width int) []byte { |