This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
PermissionGacha/modules/roles/roles.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)
}
}