Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MajorVersion ¶
MajorVersion returns the major version number from a version string. Returns 0 if parsing fails.
func NormalizeTarget ¶
NormalizeTarget normalises target strings (e.g. trims whitespace, lowercases).
Types ¶
type TargetMeta ¶
TargetMeta holds metadata about a Qt target/architecture.
func LookupTarget ¶
func LookupTarget(name string) (TargetMeta, bool)
LookupTarget returns metadata for a target string.
type TargetOS ¶
type TargetOS string
TargetOS represents the operating system component of a target string.
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents a parsed Qt version number.
func MustParseVersion ¶
MustParseVersion is like ParseVersion but panics on error.
func ParseVersion ¶
ParseVersion parses a Qt version string like "6.10.0". Requires exactly three dot-separated numeric components.
func (Version) Compare ¶
Compare returns negative, zero, or positive depending on whether v < other, v == other, or v > other.
type VersionFilter ¶
VersionFilter represents a partial or full version specification used for filtering. It can match major-only ("6"), major.minor ("6.9"), or exact major.minor.patch ("6.9.0").
func ParseVersionFilter ¶
func ParseVersionFilter(s string) (VersionFilter, error)
ParseVersionFilter parses a partial or full version string. Accepted formats: "6", "6.9", "6.9.0".
func (VersionFilter) IsFullVersion ¶
func (vf VersionFilter) IsFullVersion() bool
IsFullVersion returns true if the filter specifies all three components.
func (VersionFilter) Matches ¶
func (vf VersionFilter) Matches(v Version) bool
Matches reports whether a parsed Version matches this filter.
func (VersionFilter) MatchesString ¶
func (vf VersionFilter) MatchesString(version string) bool
MatchesString reports whether a version string like "6.9.0" matches this filter.
func (VersionFilter) String ¶
func (vf VersionFilter) String() string
String returns the filter as originally specified (e.g. "6", "6.9", "6.9.0").