Contains returns if given role is in the ServerRoles>.
(role ServerRole)
| 289 | |
| 290 | // Contains returns if given role is in the ServerRoles>. |
| 291 | func (ss *ServerRoles) Contains(role ServerRole) bool { |
| 292 | for _, s := range *ss { |
| 293 | if s == role { |
| 294 | return true |
| 295 | } |
| 296 | } |
| 297 | return false |
| 298 | } |
no outgoing calls