Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 65573722fa
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.352 kB
package view
import "strings"
// StringURL implements the URL interface for a string.
type StringURL string
func (self StringURL) URL(response *Response) string {
url := string(self)
for _, arg := range response.Request.URLArgs {
url = strings.Replace(url, PathFragmentPattern, arg, 1)
}
return response.Request.AddProtocolAndHostToURL(url)
}
Jump to Line
Something went wrong with that request. Please try again.