ahenk-go/pkg/osinfo/os_linux.go

17 lines
322 B
Go
Raw Normal View History

2023-08-30 22:31:58 +03:00
//go:build linux
package osinfo
import "github.com/zcalusic/sysinfo"
func (h *System) getOSInfo() { //REVIEW review info in pardus
var si sysinfo.SysInfo
si.GetSysInfo()
h.OS.Name = si.OS.Name
h.OS.Distro = si.OS.Vendor
h.OS.Version = si.OS.Version
h.OS.Release = si.OS.Release
h.OS.Arch = si.OS.Architecture
}