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