MCPcopy
hub / github.com/syncthing/syncthing / nextPatchVersion

Function nextPatchVersion

build.go:1401–1407  ·  view source on GitHub ↗
(ver string)

Source from the content-addressed store, hash-verified

1399}
1400
1401func nextPatchVersion(ver string) string {
1402 parts := strings.SplitN(ver, "-", 2)
1403 digits := strings.Split(parts[0], ".")
1404 n, _ := strconv.Atoi(digits[len(digits)-1])
1405 digits[len(digits)-1] = strconv.Itoa(n + 1)
1406 return strings.Join(digits, ".")
1407}
1408
1409func writeCompatJSON() {
1410 bs, err := os.ReadFile("compat.yaml")

Callers 1

getGitVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected