os

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOsDetails

func GetOsDetails() map[string]string

GetOsDetails returns OS details from /etc/os-release on Linux. The result is cached so it's only read once.

Types

type LibcInfo

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

func GetLibcInfo() LibcInfo

GetLibcInfo returns the libc family and version on Linux. The result is cached so the detection only runs once.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL