pathStem returns a slice of the path without the final file extension. If the path does not contain a file extension, the entire path is returned
(path string)
| 1137 | // pathStem returns a slice of the path without the final file extension. |
| 1138 | // If the path does not contain a file extension, the entire path is returned |
| 1139 | func pathStem(path string) string { |
| 1140 | i := strings.LastIndexByte(path, '.') |
| 1141 | if i == -1 { |
| 1142 | return path |
| 1143 | } |
| 1144 | return path[:i] |
| 1145 | } |
| 1146 | |
| 1147 | func ambiguousRef(n ResourceName) bool { |
| 1148 | return n.Kind == ResourceKindUnspecified || n.Kind == ResourceKindConnector |
no outgoing calls
no test coverage detected