GTE returns true if the version is greater than or equal to the base version.
(base *Version)
| 66 | |
| 67 | // GTE returns true if the version is greater than or equal to the base version. |
| 68 | func (v *Version) GTE(base *Version) bool { |
| 69 | if v.First > base.First { |
| 70 | return true |
| 71 | } |
| 72 | if v.First == base.First { |
| 73 | return v.Second >= base.Second |
| 74 | } |
| 75 | return false |
| 76 | } |
| 77 | |
| 78 | func ParseVersion(banner string) (*Version, error) { |
| 79 | re := regexp.MustCompile(`(\d+)\.(\d+)`) |
no outgoing calls
no test coverage detected