hostplatform

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMac

func IsMac(platform string) bool

IsMac determines whether the platform corresponds to a Mac platform.

func MakeName

func MakeName(os, arch string) string

MakeName constructs the canonical name for a platform given its OS and CPU architecture.

func Name

func Name() (string, error)

Name returns the name of the current platform, in the form "<os>-<cpu_arch>". E.g. "linux-arm64" or "mac-x64". This is useful for finding the path within the checkout to a platform-specific prebuilt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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