()
| 799 | } |
| 800 | |
| 801 | func (s *scopeMask) Scopes() []string { |
| 802 | scopes := make([]string, 0, 5) |
| 803 | for _, scope := range scopeMap { |
| 804 | if s.Has(scope.mask) { |
| 805 | scopes = append(scopes, scope.name) |
| 806 | } |
| 807 | } |
| 808 | return scopes |
| 809 | } |
| 810 | |
| 811 | func (s *scopeMask) String() string { |
| 812 | return strings.Join(s.Scopes(), " ") |