platform

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package platform contains definition of what ${os} and ${arch} mean for the current platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentArchitecture

func CurrentArchitecture() string

CurrentArchitecture returns the current cipd-style architecture that the current go binary conforms to.

Possible values:

  • "armv6l" (if GOARCH=arm)
  • other GOARCH values

func CurrentOS

func CurrentOS() string

CurrentOS returns the current cipd-style os that the current go binary conforms to.

Possible values:

  • "mac" (if GOOS=darwin)
  • other GOOS values

func CurrentPlatform

func CurrentPlatform() string

CurrentPlatform returns the current cipd-style platform which is just "${os}-${arch}" string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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