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)
| 32 | // Join joins Docs d with string s and Line. There is no space between each |
| 33 | // item in d and the subsequent instance of s. |
| 34 | func Join(s string, d ...Doc) Doc { |
| 35 | return JoinDoc(Concat(Text(s), Line), d...) |
| 36 | } |
| 37 | |
| 38 | // JoinDoc joins Docs d with Doc s. |
| 39 | func JoinDoc(s Doc, d ...Doc) Doc { |
no test coverage detected