Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chainreactors/EvilProxy
/ truncate
Function
truncate
cmd/inject-cli/main.go:1145–1150 ·
view source on GitHub ↗
(s string, max int)
Source
from the content-addressed store, hash-verified
1143
}
1144
1145
func
truncate(s string, max int) string {
1146
if
len(s) > max {
1147
return
s[:max] +
"..."
1148
}
1149
return
s
1150
}
1151
1152
// ----- main -----
1153
Callers
5
parseClaudeResponse
Function · 0.70
parseOpenAIResponse
Function · 0.70
parseResponsesRequest
Function · 0.70
parseResponsesResponse
Function · 0.70
printMessageSummary
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected