mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
1009e6a40b
Fixes case sensitivity issue Signed-off-by: Derek McGowan <derek@mcgstyle.net>
23 lines
446 B
Go
23 lines
446 B
Go
package platform
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
var (
|
|
// Architecture holds the runtime architecture of the process.
|
|
Architecture string
|
|
// OSType holds the runtime operating system type (Linux, …) of the process.
|
|
OSType string
|
|
)
|
|
|
|
func init() {
|
|
var err error
|
|
Architecture, err = runtimeArchitecture()
|
|
if err != nil {
|
|
logrus.Errorf("Could not read system architecture info: %v", err)
|
|
}
|
|
OSType = runtime.GOOS
|
|
}
|