Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 597 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 597 Bytes

lpfs

lpfs is a go library that makes it easier to get procfs info on a Linux system.

How to use it

  1. Get the lpfs module.

    $ go get github.com/rprobaina/lpfs
  2. Import lpfs and use the functions.

    ...
    import (
      "github.com/rprobaina/lpfs"
    )
    
    your_var, err := lpfs.Function()
    
    uptime, err : GetUptimeSystem() // A real example
  3. See the available functions, by using go doc.

    $ go doc -all lpfs
  4. You can find some usage samples here.