version

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version is currently used to represent OpenSSH version. patch version can be added in the future if needed.

func New

func New(major, minor uint16) Version

New initialized a Version

func NewDefaultVersion

func NewDefaultVersion() Version

NewDefaultVersion returns a Version with all version numbers set to zero.

func Unmarshal

func Unmarshal(s string) (Version, error)

Unmarshal parses a string to Version.

func (Version) LessThan

func (v Version) LessThan(other Version) bool

LessThan checks if this version is released earlier than the other version.

func (Version) Marshal

func (v Version) Marshal() string

Marshal encodes Version to string, e.g. "8.0"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL