Versions in this module Expand all Collapse all v0 v0.1.0 Nov 2, 2026 Changes in this version + const KindReleases + const KindTags + const LevelMajor + const LevelMinor + const LevelPatch + const MaxHistory + const OrderForge + const OrderPublished + const OrderVersion + var ErrHTTP = errors.New("unexpected HTTP status") + var ErrNotFile = errors.New("path is not a file") + var ErrNotFound = errors.New("not found") + var ErrUnknowable = errors.New("can't be evaluated for a past date") + type Commit struct + Date time.Time + SHA string + type Filter struct + Kind string + Level string + Order string + Prerelease bool + Tags []*regexp.Regexp + func (f *Filter) Latest(src Source, repo string, asOf, now time.Time) (*Release, error) + func (f *Filter) Releases(src Source, repo string, asOf, now time.Time) ([]Release, error) + type Release struct + Commit string + Prerelease bool + Published time.Time + Tag string + type Source interface + CommitAt func(repo string, asOf time.Time) (string, error) + File func(repo, path, ref string) (content string, found bool, err error) + FlaggedLatest func(repo string) (Release, error) + GetJSON func(url string) (map[string]any, error) + PathHistory func(repo, path string, until time.Time) ([]Commit, error) + Releases func(repo, kind string) ([]Release, error) + TagCommit func(repo, tag string) (string, error)