Kichiyaki
e70c73a3fa
tw/dataloader: - Move endpoints to the new file - use errors.New instead of fmt.Errorf - new error messages
13 lines
207 B
Go
13 lines
207 B
Go
package twutil
|
|
|
|
import (
|
|
"github.com/tribalwarshelp/shared/models"
|
|
)
|
|
|
|
func VersionCodeFromServerKey(key string) models.VersionCode {
|
|
if len(key) < 2 {
|
|
return ""
|
|
}
|
|
return models.VersionCode(key[0:2])
|
|
}
|