MCPcopy Create free account
hub / github.com/coder/agentapi / TrimWhitespace

Function TrimWhitespace

lib/msgfmt/msgfmt.go:9–11  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

7const WhiteSpaceChars = " \t\n\r\f\v"
8
9func TrimWhitespace(msg string) string {
10 return strings.Trim(msg, WhiteSpaceChars)
11}
12
13// IndexSubslice returns the index of the first instance of sub in s,
14// or -1 if sub is not present in s.

Callers 1

SendMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected