appendSourceURL appends a source reference to the task description.
(description, url string)
| 200 | |
| 201 | // appendSourceURL appends a source reference to the task description. |
| 202 | func appendSourceURL(description, url string) string { |
| 203 | if url == "" { |
| 204 | return description |
| 205 | } |
| 206 | suffix := "\n\n---\nSource: " + url |
| 207 | return strings.TrimRight(description, "\n") + suffix |
| 208 | } |
no outgoing calls