boosty / boosty.go
hocki1's picture
first_commit
2c8c8ba
raw
history blame contribute delete
428 Bytes
package boosty
import (
"gohome.4gophers.ru/getapp/boosty/request"
)
type Boosty struct {
blog string
request *request.Request
}
func New(blog string, options ...Option) (*Boosty, error) {
request, err := request.New()
if err != nil {
return nil, err
}
b := &Boosty{
blog: blog,
request: request,
}
for _, o := range options {
if err := o(b); err != nil {
return nil, err
}
}
return b, nil
}