platforms

package
v1.46.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform uint
const DarwinAmd64 Platform = 2
const DarwinArm64 Platform = 3
const LinuxAmd64 Platform = 0
const LinuxArm64 Platform = 1
const WindowsAmd64 Platform = 4
const WindowsArm64 Platform = 5

func Detect

func Detect() (plat Platform)

Detect automatically detects the current platform.

If the current platform doesn't match any of the allowed platforms, Detect falls back to Linux.

Jump to

Keyboard shortcuts

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