Documentation ¶ Index ¶ type OSArch func Current() OSArch func New(input string) (OSArch, error) func (o OSArch) String() string 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". Source Files ¶ View all Source files osarch.go Click to show internal directories. Click to hide internal directories.