Codebase list golang-procfs / 6c34ef8
Merge pull request #3 from audebert/master Update example Julius Volz 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2121 // "fmt"
2222 // "log"
2323 //
24 // "github.com/prometheus/client_golang/procfs"
24 // "github.com/prometheus/procfs"
2525 // )
2626 //
2727 // func main() {
3030 // log.Fatalf("could not get process: %s", err)
3131 // }
3232 //
33 // stat, err := p.Stat()
33 // stat, err := p.NewStat()
3434 // if err != nil {
3535 // log.Fatalf("could not get process stat: %s", err)
3636 // }