Previously this code used a run-time map lookup keyed by runtime.GOOS/GOARCH. This version uses conditional compilation to make this choice at compile time, giving immediate feedback for unsupported platforms.