platform

package
v3.0.0-alpha2.113 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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