This file contains utility and other non-standard functions not listed in the paper (see the package documentation). Utility functions are those that are generally useful or need to create certain structures (like union) in a correct way. Join joins Docs d with string s and Line. There is no space b
(s string, d ...Doc)
| 18 | // Join joins Docs d with string s and Line. There is no space between each |
| 19 | // item in d and the subsequent instance of s. |
| 20 | func Join(s string, d ...Doc) Doc { |
| 21 | return JoinDoc(Concat(Text(s), Line), d...) |
| 22 | } |
| 23 | |
| 24 | // JoinDoc joins Docs d with Doc s. |
| 25 | func JoinDoc(s Doc, d ...Doc) Doc { |
no test coverage detected
searching dependent graphs…