ox

package module
v0.0.0-...-c1efb88 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 5 Imported by: 0

README

ox

build status codecov Go Report Card GoDoc MIT licensed

ox contains:

  • Package syscallex: the missing parts of syscall
  • Package winox: convenient wrappers for some Win32 APIs
  • Package macox: convenient wrappers for some Cocoa APIs

License

Licensed under MIT License, see LICENSE for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform string
const (
	PlatformOSX     Platform = "osx"
	PlatformWindows Platform = "windows"
	PlatformLinux   Platform = "linux"
	PlatformUnknown Platform = "unknown"
)

these coincide with the namings used in the itch.io backend

type Runtime

type Runtime struct {
	Platform Platform `json:"platform"`
	Is64     bool     `json:"is64"`
}

Runtime describes an os-arch combo in a convenient way

func CurrentRuntime

func CurrentRuntime() *Runtime

func (*Runtime) Arch

func (r *Runtime) Arch() string

Arch returns the architecture in GOARCH format

func (*Runtime) OS

func (r *Runtime) OS() string

OS returns the operating system in GOOS format

func (*Runtime) String

func (r *Runtime) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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