platform

package
v27.4.0-rc.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

View Source
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 deprecated

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL