system

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountDecimal

func ByteCountDecimal(b uint64) string

ByteCountDecimal formats b as human-readable size (1000-based: kB, MB, …).

func DirSize

func DirSize(path string) (uint64, error)

DirSize returns the total size in bytes of all files under path. Uses filepath.WalkDir for fewer syscalls and better performance (Go 1.16+).

func DiskAvailable

func DiskAvailable() (uint64, error)

DiskAvailable returns the number of bytes available to the current user in the current working directory's filesystem. Unix-only.

func GetMemoryUsageAndGoroutine

func GetMemoryUsageAndGoroutine() (uint64, string)

func ManualGC

func ManualGC()

func Stats

func Stats(logPrint bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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