Versions in this module Expand all Collapse all v0 v0.2.0 Jan 1, 2025 Changes in this version + const DirName + var Regex = regexp.MustCompile(`v?\d+\.\d+\.\d+`) + func Clean(version string) string + func Init(ctx context.Context, name string, src Source, options ...Option) (err error) + func ReadFile(name string, options ...Option) (string, error) + func RelPath(name string) string + type GitHub string + func (g GitHub) Latest(context.Context) (string, error) + func (g GitHub) Name(context.Context) (string, error) + type Option func(*Options) + func WithFs(fs afero.Fs) Option + type Options struct + type Source interface + Latest func(context.Context) (string, error) + Name func(context.Context) (string, error) + func GuessSource(s string) (Source, error) + type String string + func (s String) Latest(context.Context) (string, error) + func (s String) Name(context.Context) (string, error)