MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Join

Function Join

pkg/util/pretty/util.go:20–22  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
20func Join(s string, d ...Doc) Doc {
21 return JoinDoc(Concat(Text(s), Line), d...)
22}
23
24// JoinDoc joins Docs d with Doc s.
25func JoinDoc(s Doc, d ...Doc) Doc {

Callers 2

commaSeparatedMethod · 0.92
JoinGroupAlignedFunction · 0.85

Calls 3

JoinDocFunction · 0.85
TextFunction · 0.85
ConcatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…