https://github.com/ericlagergren/ostypes
A very stupid (but basically the only) way to determine the HOST_OPERATING_SYSTEM like GNU does it.
https://github.com/ericlagergren/ostypes
Last synced: 4 months ago
JSON representation
A very stupid (but basically the only) way to determine the HOST_OPERATING_SYSTEM like GNU does it.
- Host: GitHub
- URL: https://github.com/ericlagergren/ostypes
- Owner: ericlagergren
- License: unlicense
- Created: 2015-07-28T01:37:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-28T01:52:10.000Z (almost 11 years ago)
- Last Synced: 2024-06-21T11:03:48.896Z (almost 2 years ago)
- Language: Go
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.)