ToStringSlice converts a slice of Scopes to a slice of strings.
(scopes ...Scope)
| 108 | |
| 109 | // ToStringSlice converts a slice of Scopes to a slice of strings. |
| 110 | func ToStringSlice(scopes ...Scope) []string { |
| 111 | result := make([]string, len(scopes)) |
| 112 | for i, scope := range scopes { |
| 113 | result[i] = string(scope) |
| 114 | } |
| 115 | return result |
| 116 | } |
| 117 | |
| 118 | // ExpandScopes takes a list of required scopes and returns all accepted scopes |
| 119 | // including parent scopes from the hierarchy. |
no outgoing calls