Merge pull request #191 from uhthomas/master

Add build guards for all Windows imports
This commit is contained in:
Kathryn Baldauf
2021-02-10 17:11:08 -08:00
committed by GitHub
34 changed files with 73 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio package winio
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package backuptar package backuptar
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio package winio
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio package winio
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio package winio
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw package etw
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw package etw
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw package etw
import ( import (
+1
View File
@@ -1,3 +1,4 @@
// +build windows
// +build amd64 arm64 386 // +build amd64 arm64 386
package etw package etw
+1
View File
@@ -1,3 +1,4 @@
// +build windows
// +build arm // +build arm
package etw package etw
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw package etw
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw package etw
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw package etw
import ( import (
+5
View File
@@ -0,0 +1,5 @@
// +build !windows
package main
func main() {}
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// Shows a sample usage of the ETW logging package. // Shows a sample usage of the ETW logging package.
package main package main
+1
View File
@@ -1,3 +1,4 @@
// +build windows
// +build 386 arm // +build 386 arm
package etw package etw
+1
View File
@@ -1,3 +1,4 @@
// +build windows
// +build amd64 arm64 // +build amd64 arm64
package etw package etw
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etwlogrus package etwlogrus
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etwlogrus package etwlogrus
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// Package guid provides a GUID type. The backing structure for a GUID is // Package guid provides a GUID type. The backing structure for a GUID is
// identical to that used by the golang.org/x/sys/windows GUID type. // identical to that used by the golang.org/x/sys/windows GUID type.
// There are two main binary encodings used for a GUID, the big-endian encoding, // There are two main binary encodings used for a GUID, the big-endian encoding,
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package guid package guid
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package process package process
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package process package process
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package security package security
import ( import (
+2
View File
@@ -1,3 +1,5 @@
//+build windows
package security package security
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio package winio
import "testing" import "testing"
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio package winio
import "testing" import "testing"
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package main package main
import ( import (
+5
View File
@@ -0,0 +1,5 @@
// +build !windows
package main
func main() {}
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT // MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT
package vhd package vhd
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package wim package wim
import ( import (
+5
View File
@@ -0,0 +1,5 @@
// +build !windows
package main
func main() {}
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package main package main
import ( import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// Package wim implements a WIM file parser. // Package wim implements a WIM file parser.
// //
// WIM files are used to distribute Windows file system and container images. // WIM files are used to distribute Windows file system and container images.