goos.go 531 B

123456789101112
  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. // package goos contains GOOS-specific constants.
  5. package goos
  6. // The next line makes 'go generate' write the zgoos*.go files with
  7. // per-OS information, including constants named Is$GOOS for every
  8. // known GOOS. The constant is 1 on the current system, 0 otherwise;
  9. // multiplying by them is useful for defining GOOS-specific constants.
  10. //go:generate go run gengoos.go