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