Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version represents a dpkg version string.
func Parse ¶
Parse returns a Version struct filled with the epoch, version and revision specified in input. It verifies the version string as a whole, just like dpkg(1), and even returns roughly the same error messages.
func (Version) Compare ¶
Compare compares the two provided Debian versions. It returns 0 if a and b are equal, a value < 0 if a is smaller than b and a value > 0 if a is greater than b.
func (Version) MarshalText ¶
func (Version) StringWithoutEpoch ¶
func (*Version) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.