This repository has been archived on 2026-03-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
lotus-package-manager/Lotus/SysInfo.go
2021-11-20 13:10:33 +01:00

18 lines
224 B
Go

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}
}