os

package
v0.0.0-...-6218223 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package os provides access to operating system related configuration.

Index

Constants

This section is empty.

Variables

View Source
var HostOS = hostOS // for monkey patching

Functions

func ReadOSRelease

func ReadOSRelease(f string) (map[string]string, error)

ReadOSRelease parses the information in the os-release file.

See http://www.freedesktop.org/software/systemd/man/os-release.html.

Types

type OSType

type OSType int
const (
	Unknown OSType = iota
	Ubuntu
	Windows
	OSX
	CentOS
	Arch
)

func (OSType) String

func (t OSType) String() string

Jump to

Keyboard shortcuts

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