Documentation
¶
Overview ¶
Package osinfo can be used to read OS and vendor related information from a known source file. For Linux-based systems, the /etc/os-release file is used.
This package does not support Windows based systems.
Index ¶
Constants ¶
View Source
const ( // OSName is given by runtime.GOOS. OSName = runtime.GOOS // OSReleaseFilePath lists the location of the os-release file in the Linux system. OSReleaseFilePath = "/etc/os-release" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileReadCloser ¶
type FileReadCloser func(string) (io.ReadCloser, error)
FileReadCloser is a function which reads an input file and returns the io.ReadCloser. It is created to facilitate testing.
Click to show internal directories.
Click to hide internal directories.