17 lines
285 B
Go
17 lines
285 B
Go
|
package roles
|
||
|
|
||
|
import (
|
||
|
"io/ioutil"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
var rolesFromLevel []string
|
||
|
|
||
|
func init() {
|
||
|
listOfRoles, _ := ioutil.ReadFile("roles.txt")
|
||
|
rolesFromLevel = strings.Split(string(listOfRoles), "\n")
|
||
|
for k, v := range rolesFromLevel {
|
||
|
rolesFromLevel[k] = strings.TrimSpace(v)
|
||
|
}
|
||
|
}
|