Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 392 Bytes
package view
func NewURLWithArgs(url URL, args ...string) *URLWithArgs {
return &URLWithArgs{
Url: url,
Args: args,
}
}
// URLWithArgs binds Args to an URL.
// Url.URL() will be called with response.URLArgs(Args...)
type URLWithArgs struct {
Url URL
Args []string
}
func (self *URLWithArgs) URL(response *Response) string {
return self.Url.URL(response.URLArgs(self.Args...))
}
Jump to Line
Something went wrong with that request. Please try again.