isRemoteHTTPYAML checks if the source is a http/https url and a yaml
(source string)
| 157 | |
| 158 | // isRemoteHTTPYAML checks if the source is a http/https url and a yaml |
| 159 | func isRemoteHTTPYAML(source string) bool { |
| 160 | if strings.HasPrefix(source, "http://") || strings.HasPrefix(source, "https://") { |
| 161 | if strings.HasSuffix(source, ".yaml") { |
| 162 | return true |
| 163 | } |
| 164 | } |
| 165 | return false |
| 166 | } |
no outgoing calls
no test coverage detected