Documentation ¶
Overview ¶
gopsutil is a port of psutil(http://pythonhosted.org/psutil/). This covers these architectures.
- linux (amd64, arm)
- freebsd (amd64)
- windows (amd64)
Index ¶
- Variables
- func ByteToString(orig []byte) string
- func CallLsof(invoke Invoker, pid int32, args ...string) ([]string, error)
- func IntToString(orig []int8) string
- func PathExists(filename string) bool
- func ReadLines(filename string) ([]string, error)
- func ReadLinesOffsetN(filename string, offset uint, n int) ([]string, error)
- func StringsContains(target []string, src string) bool
- func StringsHas(target []string, src string) bool
- type FakeInvoke
- type Invoke
- type Invoker
Constants ¶
This section is empty.
Variables ¶
View Source
var NotImplementedError = errors.New("not implemented yet")
Functions ¶
func ByteToString ¶
func IntToString ¶
func PathExists ¶
func ReadLines ¶
ReadLines reads contents from a file and splits them by new lines. A convenience wrapper to ReadLinesOffsetN(filename, 0, -1).
func ReadLinesOffsetN ¶
ReadLines reads contents from file and splits them by new line. The offset tells at which line number to start. The count determines the number of lines to read (starting from offset):
n >= 0: at most n lines n < 0: whole file
func StringsContains ¶
StringsContains checks the src in any string of the target string slice
func StringsHas ¶
StringsHas checks the target string slice containes src or not
Types ¶
type FakeInvoke ¶
Click to show internal directories.
Click to hide internal directories.