package platform

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

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

Index

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.

Source Files

platform.go platform_unix.go

Version
v25.0.0-beta.2+incompatible
Published
Dec 12, 2023
Platform
js/wasm
Imports
3 packages
Last checked
41 minutes ago

Tools for package owners.