go fmt fixes
This commit is contained in:
parent
b4ef7bb3ed
commit
260fc43281
|
@ -21,6 +21,7 @@ var fPidfile = flag.String("pidfile", "", "file to write our pid to")
|
||||||
|
|
||||||
// Telegraf version
|
// Telegraf version
|
||||||
var Version = "unreleased"
|
var Version = "unreleased"
|
||||||
|
|
||||||
// Telegraf commit
|
// Telegraf commit
|
||||||
var Commit = ""
|
var Commit = ""
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
const sampleTextFormat = `# HELP go_gc_duration_seconds A summary of the GC invocation durations.
|
const sampleTextFormat = `# HELP go_gc_duration_seconds A summary of the GC invocation durations.
|
||||||
# TYPE go_gc_duration_seconds summary
|
# TYPE go_gc_duration_seconds summary
|
||||||
go_gc_duration_seconds{quantile="0"} 0.00010425500000000001
|
go_gc_duration_seconds{quantile="0"} 0.00010425500000000001
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -58,4 +58,3 @@ func CallSyscall(mib []int32) ([]byte, uint64, error) {
|
||||||
|
|
||||||
return buf, length, nil
|
return buf, length, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue