lpfs
is a go library that makes it easier to get procfs
info on a Linux system.
-
Get the
lpfs
module.$ go get github.com/rprobaina/lpfs
-
Import
lpfs
and use the functions.... import ( "github.com/rprobaina/lpfs" ) your_var, err := lpfs.Function() uptime, err : GetUptimeSystem() // A real example
-
See the available functions, by using
go doc
.$ go doc -all lpfs
-
You can find some usage samples here.