18 lines
224 B
Go
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}
|
|
}
|