MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / diagnosticsRuntime

Function diagnosticsRuntime

cmd/client/diagnostics.go:95–110  ·  view source on GitHub ↗
(configPath, version string)

Source from the content-addressed store, hash-verified

93}
94
95func diagnosticsRuntime(configPath, version string) string {
96 cwd, _ := os.Getwd()
97 exe, _ := os.Executable()
98 return fmt.Sprintf(`version: %s
99generated_at: %s
100go_version: %s
101goos: %s
102goarch: %s
103num_cpu: %d
104gomaxprocs: %d
105num_goroutine: %d
106cwd: %s
107executable: %s
108config_path: %s
109`, version, time.Now().Format(time.RFC3339), runtime.Version(), runtime.GOOS, runtime.GOARCH, runtime.NumCPU(), runtime.GOMAXPROCS(0), runtime.NumGoroutine(), cwd, exe, configPath)
110}
111
112func addDiagnosticsSummary(zw *zip.Writer, configPath, version string) error {
113 w, err := zw.Create("diagnostics.json")

Callers 1

writeDiagnosticsZipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected