Make lint happy

Mostly new-style Go build directives

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
Bryan Boreham
2022-03-14 18:52:10 +00:00
parent 3fb47b94de
commit bcdf2caa61
16 changed files with 16 additions and 0 deletions
+1
View File
@@ -107,6 +107,7 @@ type pendingEntry struct {
older []*report.Report
}
// NewLiveCollector makes a new LiveCollector from the supplied config.
func NewLiveCollector(config LiveCollectorConfig) (app.Collector, error) {
c := &liveCollector{
cfg: config,
+1
View File
@@ -1,4 +1,5 @@
// withNetNS function requires a fix that first appeared in Go version 1.10
//go:build go1.10
// +build go1.10
package docker
+1
View File
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package docker
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build (linux && amd64) || (linux && ppc64le)
// +build linux,amd64 linux,ppc64le
// Build constraint to use this file for amd64 & ppc64le on Linux
+1
View File
@@ -1,3 +1,4 @@
//go:build darwin || arm || arm64 || s390x
// +build darwin arm arm64 s390x
// Cross-compiling the snooper requires having pcap binaries,
+1
View File
@@ -1,3 +1,4 @@
//go:build (linux && amd64) || (linux && ppc64le)
// +build linux,amd64 linux,ppc64le
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build linux
// +build linux
package endpoint
+1
View File
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package endpoint
+1
View File
@@ -1,5 +1,6 @@
// Ensure go mod fetches files needed to build the Docker container;
// the build constraint ensures this file is ignored
//go:build tools
// +build tools
package report
+1
View File
@@ -1,5 +1,6 @@
// Ensure go mod fetches files needed at code generation time;
// the build constraint ensures this file is ignored
//go:build tools
// +build tools
package report