appendComment adds comment in the header of the query into buffer
(b []byte, name string)
| 154 | |
| 155 | // appendComment adds comment in the header of the query into buffer |
| 156 | func appendComment(b []byte, name string) []byte { |
| 157 | if name == "" { |
| 158 | return b |
| 159 | } |
| 160 | name = strings.ReplaceAll(name, `/*`, `/\*`) |
| 161 | name = strings.ReplaceAll(name, `*/`, `*\/`) |
| 162 | return append(b, fmt.Sprintf("/* %s */ ", name)...) |
| 163 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…