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.

Source Files