Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Linux /proc info parser for Go

License

NotificationsYou must be signed in to change notification settings

c9s/goprocinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

/proc information parser for Go.

Usage

import ("log"linuxproc"github.com/c9s/goprocinfo/linux")stat,err:=linuxproc.ReadStat("/proc/stat")iferr!=nil {log.Fatal("stat read fail")}for_,s:=rangestat.CPUStats {// s.User// s.Nice// s.System// s.Idle// s.IOWait}// stat.CPUStatAll// stat.CPUStats// stat.Processes// stat.BootTime// ... etc

Documentation

Full documentation is available atGodoc.

Reference

License

goprocinfo is distributed under the MIT license.

About

Linux /proc info parser for Go

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp