skratchdot / open-golang

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
MIT License
783 stars 65 forks source link

Use build tags instead of checking platform at runtime. #3

Closed sorcix closed 10 years ago

skratchdot commented 10 years ago

Interesting. I had thought about looking into a way to stop the check from happening at runtime, but figured most people that would use something like this, would typically only use it sparingly (i.e. be okay with the runtime hit).

With that said, I wasn't away of the build constraints / directives in golang. This definitely makes sense. Thanks...