(s string)
| 122 | } |
| 123 | |
| 124 | func escape(s string) template.URL { |
| 125 | // That's the only way I found to get the kind of escaping I wanted, where |
| 126 | // '/' is not escaped. |
| 127 | u := url.URL{Path: s} |
| 128 | /* #nosec G203 */ |
| 129 | return template.URL(u.EscapedPath()) |
| 130 | } |
| 131 | |
| 132 | // getSrcBranchURL returns a link to the source on the web and the tag name for |
| 133 | // the package version, if possible. |
no outgoing calls
no test coverage detected
searching dependent graphs…