package platform

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

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

Index

Constants

const OSType = runtime.GOOS

OSType holds the runtime operating system type of the process. It is an alias for runtime.GOOS.

Deprecated: use runtime.GOOS instead.

Variables

var Architecture string

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.

Functions

func NumProcs

func NumProcs() uint32

NumProcs returns the number of processors on the system

Source Files

platform.go platform_windows.go

Version
v24.0.3+incompatible
Published
Jul 3, 2023
Platform
windows/amd64
Imports
6 packages
Last checked
33 minutes ago

Tools for package owners.