package platform

import "github.com/dotcloud/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

Source Files

platform.go platform_windows.go

Version
v28.0.0-rc.3+incompatible
Published
Feb 18, 2025
Platform
windows/amd64
Imports
7 packages
Last checked
39 minutes ago

Tools for package owners.