Documentation ¶
Index ¶
Constants ¶
View Source
const TmpfsNoswapOption = "noswap"
Variables ¶
This section is empty.
Functions ¶
func IsSwapOn ¶
IsSwapOn detects whether swap in enabled on the system by inspecting /proc/swaps. If the file does not exist, an os.NotFound error will be returned. If running on windows, swap is assumed to always be false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.