Added some SysInfo

This commit is contained in:
netbenix 2021-11-20 13:10:33 +01:00
parent da2a4cdfd8
commit 0e77fe3e3d

18
Lotus/SysInfo.go Normal file
View file

@ -0,0 +1,18 @@
package Lotus
import (
"runtime"
)
func Platform() string{
return runtime.GOOS
}
func Architecture() []string {
if runtime.GOARCH == "amd64" {
return []string{"amd64", "i386"}
}
return []string{runtime.GOARCH}
}