checkos

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Linux   = runtime.GOOS == "linux"
	Windows = runtime.GOOS == "windows"
	Darwin  = runtime.GOOS == "darwin"
)

Variables

View Source
var (
	UnixSystems = []string{
		"aix",
		"android",
		"darwin",
		"dragonfly",
		"freebsd",
		"illumos",
		"ios",
		"linux",
		"netbsd",
		"openbsd",
		"solaris",
	}
	Unix = func() bool {
		for _, os := range UnixSystems {
			if os == runtime.GOOS {
				return true
			}
		}

		return false
	}()
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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