18 lines
206 B
Go
18 lines
206 B
Go
|
package handlers
|
||
|
|
||
|
import "net/url"
|
||
|
|
||
|
func NewRequest(url *url.URL) *Request {
|
||
|
return &Request{
|
||
|
url: url,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
type Request struct {
|
||
|
url *url.URL
|
||
|
}
|
||
|
|
||
|
func (r *Request) GetURL() *url.URL {
|
||
|
return r.url
|
||
|
}
|