Documentation ¶
Overview ¶
Package pseudofs provides helpers for interacting with pseudo filesystems such as procfs and sysfs.
Index ¶
- func Flag(path string) (bool, error)
- func Int(path string) (int, error)
- func Ints(path string) (_ []int, err error)
- func String(path string) (string, error)
- func WriteFile(path string, data []byte, perm uint32) (err error)
- func WriteFlag(path string, enabled bool) error
- func WriteInt(path string, n int) error
- func WriteInts(path string, ns []int) error
- func WriteString(path, s string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteString ¶
WriteString writes a string to a file, followed by a newline.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.