mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
16 lines
172 B
Go
16 lines
172 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/shirou/gopsutil/v3/host"
|
|
)
|
|
|
|
func main() {
|
|
info, err := host.Info()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
log.Printf("%#v", info)
|
|
}
|