platform

package
v24.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

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

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

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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