package platform

import "github.com/dotcloud/docker/pkg/platform"

Package platform provides helper function to get the runtime architecture for different platforms.

Deprecated: this package is only used internally, and will be removed in the next release.

Index

Variables

var Architecture = platform.Architecture()

Architecture holds 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.

Deprecated: this package is only used internally, and will be removed in the next release.

Functions

func NumProcs

func NumProcs() uint32

NumProcs returns the number of processors on the system

Deprecated: this package is only used internally, and will be removed in the next release.

Source Files

platform.go

Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
58 minutes ago

Tools for package owners.