HasTag checks if this service has the specified tag
(tag string)
| 211 | |
| 212 | // HasTag checks if this service has the specified tag |
| 213 | func (s *VCAPService) HasTag(tag string) bool { |
| 214 | for _, t := range s.Tags { |
| 215 | if t == tag { |
| 216 | return true |
| 217 | } |
| 218 | } |
| 219 | return false |
| 220 | } |
| 221 | |
| 222 | // ContainsIgnoreCase checks if string s contains substr (case-insensitive) |
| 223 | // This is a utility function used by frameworks for flexible matching |
no outgoing calls
no test coverage detected