ahenk-go/pkg/osinfo/os_linux.go

17 lines
334 B
Go
Raw Permalink Normal View History

2023-08-31 19:50:35 +03:00
//go:build linux && !windows
2023-08-30 22:31:58 +03:00
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
}