It is more conventional to say

// +build darwin freebsd linux netbsd openbsd

but

// +build !windows !plan9

would also work.

On Mon, Jan 7, 2013 at 1:50 PM, Andrew Wilkins <notifications@github.com>wrote:

> In io_unix.go:
>
> > +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
> > +// sell copies of the Software, and to permit persons to whom the Software is
> > +// furnished to do so, subject to the following conditions:
> > +//
> > +// The above copyright notice and this permission notice shall be included in
> > +// all copies or substantial portions of the Software.
> > +//
> > +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> > +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> > +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> > +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> > +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> > +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
> > +// IN THE SOFTWARE.
> > +
> > +// +build !windows
>
> "io_not_windows.go"? :)
> … <#13c12ea5115d5d01_>
> On Mon, Jan 7, 2013 at 10:48 AM, Dave Cheney <notifications@github.com>wrote:
> In io_unix.go: > +// rights to use, copy, modify, merge, publish,
> distribute, sublicense, and/or > +// sell copies of the Software, and to
> permit persons to whom the Software is > +// furnished to do so, subject to
> the following conditions: > +// > +// The above copyright notice and this
> permission notice shall be included in > +// all copies or substantial
> portions of the Software. > +// > +// THE SOFTWARE IS PROVIDED "AS IS",
> WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > +// IMPLIED, INCLUDING BUT NOT
> LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > +// FITNESS FOR A
> PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE > +// AUTHORS
> OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER > +//
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >
> +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
> DEALINGS > +// IN THE SOFTWARE. > + > +// +build !windows this will make
> the Plan9 guys sad, but, YAGNI — Reply to this email directly or view it on
> GitHub<https://github.com/axw/gocov/pull/22/files#r2561381>.
>  -- Andrew Wilkins http://awilkins.id.au
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/axw/gocov/pull/22/files#r2561385>.
>
>