Add build guards for all Windows imports

This commit is contained in:
Thomas Way
2021-01-21 23:24:01 +00:00
parent d1ffc52c73
commit 9d8277341f
18 changed files with 32 additions and 4 deletions
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package backuptar
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package winio
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw
import (
+1 -1
View File
@@ -1,4 +1,4 @@
// +build amd64 arm64 386
// +build windows amd64 arm64 386
package etw
+1 -1
View File
@@ -1,4 +1,4 @@
// +build arm
// +build windows arm
package etw
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etw
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// Shows a sample usage of the ETW logging package.
package main
+1 -1
View File
@@ -1,4 +1,4 @@
// +build 386 arm
// +build windows 386 arm
package etw
+1 -1
View File
@@ -1,4 +1,4 @@
// +build amd64 arm64
// +build windows amd64 arm64
package etw
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package etwlogrus
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// 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.
// There are two main binary encodings used for a GUID, the big-endian encoding,
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package process
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package process
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package main
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT
package vhd
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package wim
import (
+2
View File
@@ -1,3 +1,5 @@
// +build windows
package main
import (