Discover Packages
github.com/mkacmar/crack
toolchain
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Feb 9, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package toolchain provides compiler and version detection for binaries.
View Source
var (
ErrInvalidVersionFormat = errors .New ("invalid version format")
ErrInvalidVersionMajor = errors .New ("invalid major version component")
ErrInvalidVersionMinor = errors .New ("invalid minor version component")
)
BuildInfo contains compiler metadata extracted from a binary.
Compiler identifies a compiler toolchain.
type ELFCommentDetector struct{}
ELFCommentDetector detects compiler from ELF .comment section.
ELFDetector detects compiler info from ELF binaries.
type Version struct {
Major int
Minor int
Patch int
}
Version represents a semantic version (major.minor.patch).
ParseVersion parses a version string like "1.2.3" or "1.2".
IsAtLeast reports whether v is at least the required version.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.