You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
254 B
17 lines
254 B
package needle
|
|
|
|
type Version uint8
|
|
|
|
const (
|
|
Version1 = Version(1)
|
|
Version2 = Version(2)
|
|
Version3 = Version(3)
|
|
)
|
|
|
|
func GetCurrentVersion() Version {
|
|
return Version3
|
|
}
|
|
|
|
func IsSupportedVersion(v Version) bool {
|
|
return v >= Version1 && v <= Version3
|
|
}
|