Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOsDetails ¶
GetOsDetails returns OS details from /etc/os-release on Linux. The result is cached so it's only read once.
Types ¶
type LibcInfo ¶ added in v2.0.1
type LibcInfo struct {
Family string // "glibc", "musl", or "" if not detected
Version string // e.g., "2.31", "1.2.4", or "" if not determined
}
LibcInfo contains information about the C standard library in use.
func GetLibcInfo ¶ added in v2.0.1
func GetLibcInfo() LibcInfo
GetLibcInfo returns the libc family and version on Linux. The result is cached so the detection only runs once.
Click to show internal directories.
Click to hide internal directories.