Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hasura/graphql-engine
/ limitString
Function
limitString
cli/commands/plugins.go:177–182 ·
view source on GitHub ↗
(s string, length int)
Source
from the content-addressed store, hash-verified
175
}
176
177
func
limitString(s string, length int) string {
178
if
len(s) > length && length > 3 {
179
s = s[:length-3] +
"..."
180
}
181
return
s
182
}
Callers
1
run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected