Skip to content

ericlagergren/ostypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages