Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoTagsFound = errors.New("No tags found")
)
Functions ¶
This section is empty.
Types ¶
type Tag ¶
func GetLatestTag ¶
GetLatestTag clones a Git repository into memory and resolves latest leightweight or annotated tag from it
Example ¶
tag, err := GetLatestTag("https://github.com/luzifer-ansible/deploy-git.git", true) if err != nil { log.Fatalf("Could not resolve latest tag: %s", err) } log.Printf("Latest tag: %q, created at %v", tag.Name, tag.When)
Output:
Click to show internal directories.
Click to hide internal directories.