Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchOp ¶
type ArchOp uint
const ( OpEquals ArchOp // equals OpNotEquals // not equals OpPatternMatch // pattern match )
func (ArchOp) MarshalText ¶
func (*ArchOp) UnmarshalText ¶
type PackageKind ¶
type PackageKind uint
const ( UnknownPackage PackageKind = iota // unknown SourcePackage // source BinaryPackage // binary )
func (PackageKind) MarshalText ¶
func (k PackageKind) MarshalText() (text []byte, err error)
func (PackageKind) String ¶
func (i PackageKind) String() string
func (*PackageKind) UnmarshalText ¶
func (k *PackageKind) UnmarshalText(text []byte) error
type Range ¶
Range is a half-open interval of two Versions.
In the usual notation, it is: [Lower, Upper)
type Version ¶
Version describes a revision of some sort that is ordered correctly within its "Kind".
Versions of different kinds do not have any sensible ordering.
func (*Version) Compare ¶
Compare returns an integer describing the relationship of two Versions.
The result will be 0 if a==b, -1 if a < b, and +1 if a > b. If the Versions are of different kinds, the Kinds will be compared lexographically.
func (*Version) MarshalText ¶
MarshalText implments encoding.TextMarshaler.
func (*Version) UnmarshalText ¶
UnmarshalText implments encoding.TextUnmarshaler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.