func NewUpdater(release Release, repo Repo, opts ...Option) (*Updater, error) {
	u := &Updater{
		client:  http.DefaultClient,
		release: release,
		repo:    repo,
		url:     DBUrl(release, repo),
	}

	for _, o := range opts {
		if err := o(u); err != nil {
			return nil, err
		}
	}

	return u, nil
}
// NewUpdater returns an updater configured according to the provided Options.
NewUpdater returns an updater configured according to the provided Options.
// NewUpdater returns an updater configured according to the provided Options .
func NewUpdater(release Release, repo Repo, opts ...Option) (*Updater, error) {
	u := &Updater{
		client:  http.DefaultClient,
		release: release,
		repo:    repo,
		url:     DBUrl(release, repo),
	}
	for _, o := range opts {
		if err := o(u); err != nil {
			return nil, err
		}
	}
	return u, nil
}
func NewUpdater ( release Release , repo Repo , opts ... Option ) ( * Updater , error ) { u := & Updater { client : http . DefaultClient , release : release , repo : repo , url : DBUrl ( release , repo ) , } for _ , o := range opts { if err := o ( u ) ; err != nil { return nil , err } } return u , nil }
NewUpdater returns an updater configured according to the provided Options.
NewUpdater returns an updater configured according to the provided Options .