platform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package platform declares the platform set wake supports and refuses the rest.

ADR-0021 fixes that set at darwin and linux on amd64 and arm64 — exactly what CI's build matrix builds and .goreleaser.yaml publishes — and puts the refusal at process startup, before any file is touched. The comparison lives here rather than in cmd/wake or internal/cli so the entry path stays a call and a printed error (ADR-0001).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch() []string

Arch returns the architectures wake supports, in announcement order.

Nothing refuses on GOARCH — ADR-0021 makes the startup check one GOOS comparison, because a binary for the wrong architecture does not run at all. Arch exists so the announced set has a single source: matrix_test.go asserts CI's build matrix and .goreleaser.yaml against it.

func Check

func Check(goos string) error

Check reports whether goos is a supported operating system, returning a refusal that names both the rejected platform and the supported set.

func Description

func Description() string

Description names the whole supported set in one human-readable phrase.

func OS

func OS() []string

OS returns the operating systems wake supports, in announcement order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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