MCPcopy Index your code
hub / github.com/coder/coder / Equal

Method Equal

scripts/releaser/version.go:85–87  ·  view source on GitHub ↗
(b version)

Source from the content-addressed store, hash-verified

83}
84
85func (v version) Equal(b version) bool {
86 return v.Major == b.Major && v.Minor == b.Minor && v.Patch == b.Patch && v.Pre == b.Pre
87}
88
89// sortVersionsDesc sorts a slice of versions in descending order
90// using semver-correct comparison. This is necessary because git's

Calls

no outgoing calls