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

Method WithBackwardCompat

apiversion/apiversion.go:28–31  ·  view source on GitHub ↗
(majs ...int)

Source from the content-addressed store, hash-verified

26}
27
28func (v *APIVersion) WithBackwardCompat(majs ...int) *APIVersion {
29 v.additionalMajors = append(v.additionalMajors, majs...)
30 return v
31}
32
33func (v *APIVersion) String() string {
34 return fmt.Sprintf("%d.%d", v.supportedMajor, v.supportedMinor)

Callers 1

TestAPIVersionValidateFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestAPIVersionValidateFunction · 0.64