package platform
import "github.com/docker/docker/internal/platform"
Index ¶
Functions ¶
func Architecture ¶
func Architecture() string
Architecture returns the runtime architecture of the process.
Unlike runtime.GOARCH (which refers to the compiler platform), Architecture refers to the running platform.
For example, Architecture reports "x86_64" as architecture, even when running a "linux/386" compiled binary on "linux/amd64" hardware.
func NumProcs ¶
func NumProcs() uint32
NumProcs returns the number of processors on the system
Deprecated: temporary stub for non-Windows to provide an alias for the deprecated github.com/docker/docker/pkg/platform package.
FIXME(thaJeztah): remove once we remove github.com/docker/docker/pkg/platform
Source Files ¶
- Version
- v28.0.1+incompatible
- Published
- Feb 26, 2025
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 50 minutes ago –
Tools for package owners.