osarch

package
v2.107.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSArch

type OSArch struct {
	OS   string
	Arch string
}

func Current

func Current() OSArch

Current returns and OSArch that reflects the GOOS/GOARCH value for the current runtime.

func New

func New(input string) (OSArch, error)

New returns an OSArch value for the provided input. Returns an error if the provided input is not of the correct format, which is defined as two non-empty alphanumeric strings separated by a single hyphen ("-").

func (OSArch) String

func (o OSArch) String() string

String returns a string representation of the form "GOOS-GOARCH".

Jump to

Keyboard shortcuts

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