ostypes

command module
v0.0.0-...-b44a252 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2015 License: Unlicense Imports: 5 Imported by: 0

README

ostypes

A very stupid (but basically the only) way to determine the HOST_OPERATING_SYSTEM like GNU does it.

Basically, use it like this:

//go:generate ostypes name

Where name is the name of your package (e.g., main). Yeah. I'm that lazy that I didn't figure it out myself. OH WELL. You'll live.

Access the result using the variable, 'HostOS'. (Obviously using a package prefix if needed.)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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