MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / getVersion

Function getVersion

internal/bootstrap/patch.go:24–27  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

22}
23
24func getVersion(v string) (major, minor, patchNum int, err error) {
25 _, err = fmt.Sscanf(v, "v%d.%d.%d", &major, &minor, &patchNum)
26 return major, minor, patchNum, err
27}
28
29func compareVersion(majorA, minorA, patchNumA, majorB, minorB, patchNumB int) bool {
30 if majorA != majorB {

Callers 1

InitUpgradePatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected