luci: go.chromium.org/luci/cipd/client/cipd/platform Index | Files

package platform

import "go.chromium.org/luci/cipd/client/cipd/platform"

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

Index

Package Files

platform.go

func CurrentArchitecture Uses

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 Uses

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 Uses

func CurrentPlatform() string

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

Package platform imports 2 packages (graph) and is imported by 4 packages. Updated 2018-08-15. Refresh now. Tools for package owners.