removeVendor removes everything before and including a '/vendor/' substring in the package path. This is needed becuase that full path can't be used in the import statement.
(path string)
| 287 | // This is needed becuase that full path can't be used in the |
| 288 | // import statement. |
| 289 | func removeVendor(path string) string { |
| 290 | i := strings.Index(path, "/vendor/") |
| 291 | if i == -1 { |
| 292 | return path |
| 293 | } |
| 294 | return path[i+8:] |
| 295 | } |
| 296 | |
| 297 | func buildTokens(containsOptional bool, optional string, required ...string) []string { |
| 298 | if containsOptional { |
no outgoing calls
no test coverage detected
searching dependent graphs…