package gitpb // does processing on the go.mod and go.sum files // returns true if old="v0.2.4" and new="v0.3.3" // returns true if equal // todo: make all of this smarter someday func IsGoTagVersionGreater(oldtag string, newtag string) bool { olda, oldb, oldc := splitInts(oldtag) newa, newb, newc := splitInts(newtag) if newa < olda { return false } if newb < oldb { return false } if newc < oldc { return false } return true } // returns true for "v0.2.4" and false for "v0.2.43-asdfj" // actually returns false for anything not perfectly versioned func IsGoTagPublished(oldtag string, newtag string) bool { // todo return true }