Documentation ¶ Index ¶ type RefType func (rt RefType) String() string type Repo func GetRepo(ref, url string) (*Repo, error) func (r *Repo) BestRefFor(this semver.Version) (string, RefType) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type RefType ¶ added in v0.3.0 type RefType int const ( DefaultBranchRef RefType = iota ReleaseBranchRef ReleaseRef ) func (RefType) String ¶ added in v0.3.0 func (rt RefType) String() string type Repo ¶ type Repo struct { Ref string DefaultBranch string Tags []string Branches []string } func GetRepo ¶ func GetRepo(ref, url string) (*Repo, error) func (*Repo) BestRefFor ¶ func (r *Repo) BestRefFor(this semver.Version) (string, RefType) BestRefFor Returns module@ref, isRelease Source Files ¶ View all Source files git.go Click to show internal directories. Click to hide internal directories.