MCPcopy
hub / github.com/deepfence/SecretScanner / removeFirstLastChar

Function removeFirstLastChar

output/output.go:174–179  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

172}
173
174func removeFirstLastChar(input string) string {
175 if len(input) <= 1 {
176 return input
177 }
178 return input[1 : len(input)-1]
179}
180
181func SecretToSecretInfo(out output.IOCFound, matchIndex int) *pb.SecretInfo {
182 signature := ""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected