增加获取host信息
This commit is contained in:
parent
1226d76055
commit
516382c402
21
system/host.go
Normal file
21
system/host.go
Normal file
@ -0,0 +1,21 @@
|
||||
// Package system...
|
||||
//
|
||||
// Description : system...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2021-10-12 7:57 下午
|
||||
package system
|
||||
|
||||
import (
|
||||
"github.com/shirou/gopsutil/host"
|
||||
)
|
||||
|
||||
// GetHostInfo 获取host信息
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 7:57 下午 2021/10/12
|
||||
func GetHostInfo() (*host.InfoStat, error) {
|
||||
return host.Info()
|
||||
}
|
Loading…
Reference in New Issue
Block a user