This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
|
package tw
|
|
|
|
import (
|
|
"github.com/tribalwarshelp/shared/models"
|
|
)
|
|
|
|
func VersionCodeFromServerKey(key string) models.VersionCode {
|
|
if len(key) < 2 {
|
|
return ""
|
|
}
|
|
return models.VersionCode(key[0:2])
|
|
}
|