Created
May 29, 2015 08:04
-
-
Save changtimwu/f1974bfa31070cead583 to your computer and use it in GitHub Desktop.
GO get sysinfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "golang.org/x/sys/unix" | |
func main() { | |
var si unix.Sysinfo_t | |
unix.Sysinfo( &si) | |
fmt.Println("Hello, playground", si) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment