title: What is the right approach to encapsulate platform specific code in Go?
body: <p>I want to develop a small Go application, which shows the used key stroke shortcuts to the audience of a presentation.</p>
  
  <p>To hook into the keyboard events I will have to use some platform specific code. <strong>What is the Go way to encapsulate platform specific code?</strong> I've been searching for keywords like compiler switch or platform modules, but I couldn't really find something about.</p>