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