syscallx

package
v2.4.0-RC2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package syscallx provides system call utilities that attempt to hide platform differences. Operations return UnsupportedErr if not implemented on the given platform. Consumers of this package should generally treat that error specially.

Index

Constants

This section is empty.

Variables

View Source
var UnsupportedErr = errors.New("not supported on platform")

UnsupportedErr is the error returned for unsupported operations.

Functions

func FreeDiskSpace

func FreeDiskSpace(path string) (uint64, error)

FreeDiskSpace returns the free disk space for a given path.

func PhysicalMemorySize

func PhysicalMemorySize() (uint64, error)

PhysicalMemorySize returns the total physical memory size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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