Versions in this module Expand all Collapse all v0 v0.2.1 Sep 7, 2021 v0.2.0 Sep 7, 2021 Changes in this version + const EnvGoLatestDisable + const MetaTagName + type CheckResponse struct + Current string + Latest bool + Malformeds []string + Meta *Meta + New bool + Outdated bool + func Check(s Source, target string, timeout time.Duration) (*CheckResponse, error) + type FetchResponse struct + Malformeds []string + Meta *Meta + Versions []*version.Version + type FixVersionStrFunc func(string) string + func DeleteFrontV() FixVersionStrFunc + type GithubTag struct + FixVersionStrFunc FixVersionStrFunc + Owner string + Repository string + TagFilterFunc TagFilterFunc + Token string + URL string + func (g *GithubTag) Fetch(timeout time.Duration) (*FetchResponse, error) + func (g *GithubTag) Validate() error + type HTML struct + Scrap HTMLScrap + URL string + func (h *HTML) Fetch(timeout time.Duration) (*FetchResponse, error) + func (h *HTML) Validate() error + type HTMLMeta struct + Name string + URL string + func (hm *HTMLMeta) Fetch(timeout time.Duration) (*FetchResponse, error) + func (hm *HTMLMeta) Validate() error + type HTMLScrap interface + Exec func(r io.Reader) ([]string, *Meta, error) + type JSON struct + Response JSONResponse + URL string + func (j *JSON) Fetch(timeout time.Duration) (*FetchResponse, error) + func (j *JSON) Validate() error + type JSONResponse interface + MetaInfo func() (*Meta, error) + VersionInfo func() ([]string, error) + type Meta struct + Message string + URL string + type Source interface + Fetch func(timeout time.Duration) (*FetchResponse, error) + Validate func() error + type TagFilterFunc func(string) bool