Help us shape the future of Go! Take the 2026 Go Developer Survey

platform

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch() string

func ExeExt

func ExeExt() string

func Filter

func Filter(platforms []string) bool

func Matches

func Matches(os string) bool

func NumCPU

func NumCPU() int

func OS

func OS() string

func OSFamily

func OSFamily() string

func ShellCommand

func ShellCommand(script string) *exec.Cmd

ShellCommand returns an *exec.Cmd that evaluates script through the platform's default shell. On Unix-like systems we use `sh -c …`, matching the upstream Taskfile reference implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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