diff --git a/Lotus/SysInfo.go b/Lotus/SysInfo.go new file mode 100644 index 0000000..ea3816f --- /dev/null +++ b/Lotus/SysInfo.go @@ -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} +}