goos.mx raw

   1  // Copyright 2015 The Go Authors. All rights reserved.
   2  // Use of this source code is governed by a BSD-style
   3  // license that can be found in the LICENSE file.
   4  
   5  // package goos contains GOOS-specific constants.
   6  package goos
   7  
   8  // The next line makes 'go generate' write the zgoos*.go files with
   9  // per-OS information, including constants named Is$GOOS for every
  10  // known GOOS. The constant is 1 on the current system, 0 otherwise;
  11  // multiplying by them is useful for defining GOOS-specific constants.
  12  //
  13  //go:generate go run gengoos.go
  14