mirror of
https://github.com/weaveworks/scope.git
synced 2026-09-06 10:17:19 +00:00
Make lint happy
Mostly new-style Go build directives Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
@@ -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,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,3 +1,4 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package docker
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -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,3 +1,4 @@
|
||||
//go:build darwin || arm || arm64 || s390x
|
||||
// +build darwin arm arm64 s390x
|
||||
|
||||
// Cross-compiling the snooper requires having pcap binaries,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build (linux && amd64) || (linux && ppc64le)
|
||||
// +build linux,amd64 linux,ppc64le
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package endpoint
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user