19 lines
234 B
Go
19 lines
234 B
Go
|
package videos
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"net/url"
|
||
|
)
|
||
|
|
||
|
type Videos struct {
|
||
|
client *http.Client
|
||
|
baseUrl *url.URL
|
||
|
}
|
||
|
|
||
|
func New(client *http.Client, baseUrl *url.URL) *Videos {
|
||
|
return &Videos{
|
||
|
client: client,
|
||
|
baseUrl: baseUrl,
|
||
|
}
|
||
|
}
|