osinfo

package
v1.60.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package osinfo provides information about the current operating system release

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLibDl

func DetectLibDl(root string) string

DetectLibDl returns the path to libdl.so if present under one of the traditional library paths (under `/lib`, `/lib64`, `/usr/lib`, etc...). This is a no-op on platforms other than Linux. The lookup is done exactly once, and the result will be re-used by subsequent calls.

func OSName

func OSName() string

OSName returns the name of the operating system, including the distribution for Linux when possible.

func OSVersion

func OSVersion() string

OSVersion returns the operating system release, e.g. major/minor version number and build ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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