Documentation ¶ Index ¶ type Version func (v Version) Matches(other string) bool func (v Version) Validate() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Version ¶ type Version string Version represents the protocol version string. func (Version) Matches ¶ func (v Version) Matches(other string) bool Matches returns true if the major and minor versions match. For example: 'v1' and 'v1.2.0' => false 'v1' and 'v1.0.0' => true 'v1' and 'v1.0.1' => true 'v1.0' and 'v1.0.1' => true 'v1.1' and 'v1.1.4' => true 'v1.1' and 'v1.2.0' => false. func (Version) Validate ¶ func (v Version) Validate() error Validate validates the format of the version string. Source Files ¶ View all Source files version.go Click to show internal directories. Click to hide internal directories.