github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/base/ver/ver_versions.go (about) 1 package ver 2 3 type Versions []Version 4 5 func (c Versions) Len() int { 6 return len(c) 7 } 8 9 func (c Versions) Less(i, j int) bool { 10 return c[i].LessThan(&c[j]) 11 } 12 13 func (c Versions) Swap(i, j int) { 14 c[i], c[j] = c[j], c[i] 15 }