summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/agent/executable/name.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/agent/executable/name.go')
-rw-r--r--src/go/collectors/go.d.plugin/agent/executable/name.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/executable/name.go b/src/go/collectors/go.d.plugin/agent/executable/name.go
deleted file mode 100644
index 49dcf8db6e..0000000000
--- a/src/go/collectors/go.d.plugin/agent/executable/name.go
+++ /dev/null
@@ -1,22 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-package executable
-
-import (
- "os"
- "path/filepath"
- "strings"
-)
-
-var Name string
-
-func init() {
- s, err := os.Executable()
- if err != nil || s == "" || strings.HasSuffix(s, ".test") {
- Name = "go.d"
- return
- }
-
- _, Name = filepath.Split(s)
- Name = strings.TrimSuffix(Name, ".plugin")
-}