Back to godoc.org

Package platform

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

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

Index

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier