feat: Add Next and Previous in Tag

This commit is contained in:
tsuyoshiwada 2018-02-16 15:50:05 +09:00
parent cd9684604b
commit d4d2a7ed80
3 changed files with 109 additions and 16 deletions

View file

@ -78,12 +78,20 @@ type CommitGroup struct {
Commits []*Commit
}
// Tag ...
type Tag struct {
// RelateTag ...
type RelateTag struct {
Name string
Date time.Time
}
// Tag ...
type Tag struct {
Name string
Date time.Time
Next *RelateTag
Previous *RelateTag
}
// Version ...
type Version struct {
Tag *Tag