MCPcopy Create free account
hub / github.com/adeljck/PassGet / MatchPattern

Function MatchPattern

modules/utils/remote/remote.go:63–70  ·  view source on GitHub ↗
(data, pattern []byte)

Source from the content-addressed store, hash-verified

61 return results, nil, nil
62}
63func MatchPattern(data, pattern []byte) bool {
64 for i := range pattern {
65 if data[i] != pattern[i] {
66 return false
67 }
68 }
69 return true
70}
71func ExtractBetween(value, startDelim, endDelim string) string {
72 start := strings.Index(value, startDelim)
73 if start == -1 {

Callers 1

SearchMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected