New returns an *APIVersion with the given major.minor and additional supported major versions.
(maj, minor int)
| 11 | // New returns an *APIVersion with the given major.minor and |
| 12 | // additional supported major versions. |
| 13 | func New(maj, minor int) *APIVersion { |
| 14 | v := &APIVersion{ |
| 15 | supportedMajor: maj, |
| 16 | supportedMinor: minor, |
| 17 | additionalMajors: make([]int, 0), |
| 18 | } |
| 19 | return v |
| 20 | } |
| 21 | |
| 22 | type APIVersion struct { |
| 23 | supportedMajor int |
no outgoing calls