osrelease

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EtcOsRelease string = "/etc/os-release"

EtcOsRelease ...

View Source
const UsrLibOsRelease string = "/usr/lib/os-release"

UsrLibOsRelease ...

Variables

This section is empty.

Functions

func Read

func Read() (osrelease map[string]string, err error)

Read and return os-release, trying EtcOsRelease, followed by UsrLibOsRelease. err will contain an error message if neither file exists or failed to parse

func ReadFile

func ReadFile(filename string) (osrelease map[string]string, err error)

ReadFile Similar to Read(), but takes the name of a file to load instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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