MCPcopy Index your code
hub / github.com/netdata/netdata / limitString

Function limitString

packaging/tools/agent-events/server.go:596–601  ·  view source on GitHub ↗

--- Helper Functions ---

(s string, maxLen int)

Source from the content-addressed store, hash-verified

594
595// --- Helper Functions ---
596func limitString(s string, maxLen int) string {
597 if len(s) <= maxLen {
598 return s
599 }
600 return s[:maxLen] + "..."
601}

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…