MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / printTruncated

Function printTruncated

cmd/inject-cli/main.go:1137–1143  ·  view source on GitHub ↗
(s string, max int)

Source from the content-addressed store, hash-verified

1135}
1136
1137func printTruncated(s string, max int) {
1138 if len(s) > max {
1139 fmt.Printf(" %s...\n", s[:max])
1140 } else {
1141 fmt.Printf(" %s\n", s)
1142 }
1143}
1144
1145func truncate(s string, max int) string {
1146 if len(s) > max {

Callers 7

printObserveEventFunction · 0.85
parseClaudeRequestFunction · 0.85
parseClaudeResponseFunction · 0.85
parseOpenAIRequestFunction · 0.85
parseOpenAIResponseFunction · 0.85
parseResponsesRequestFunction · 0.85
parseResponsesResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected