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

Function pluginVersionSegment

internal/pluginhost/platform.go:241–250  ·  view source on GitHub ↗
(segments []string, index int)

Source from the content-addressed store, hash-verified

239}
240
241func pluginVersionSegment(segments []string, index int) (int64, bool) {
242 if index >= len(segments) {
243 return 0, true
244 }
245 number, errParse := strconv.ParseInt(segments[index], 10, 64)
246 if errParse != nil || number < 0 {
247 return 0, false
248 }
249 return number, true
250}
251
252func cleanupUnselectedPluginFiles(root string, loaded []pluginFile) error {
253 if len(loaded) == 0 {

Callers 1

comparePluginVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected