github.com/endocode/docker@v1.4.2-0.20160113120958-46eb4700391e/pkg/platform/architecture_freebsd.go (about) 1 package platform 2 3 import ( 4 "os/exec" 5 ) 6 7 // runtimeArchitecture get the name of the current architecture (x86, x86_64, …) 8 func runtimeArchitecture() (string, error) { 9 cmd := exec.Command("uname", "-m") 10 machine, err := cmd.Output() 11 if err != nil { 12 return "", err 13 } 14 return string(machine), nil 15 }