semstr - Go package for parsing and comparing semantic version like strings
Format is less stringent than semantic versioning to accommodate more usecases.
[v]MAJOR[.MINOR[.PATCH[-PRERELEASE][+BUILD]]]
go get github.com/gregoryv/semstr
See package examples
Alternative similar package is