(imp *ast.ImportSpec)
| 165 | } |
| 166 | |
| 167 | func path_and_alias(imp *ast.ImportSpec) (string, string) { |
| 168 | path := "" |
| 169 | if imp.Path != nil && len(imp.Path.Value) > 0 { |
| 170 | path = string(imp.Path.Value) |
| 171 | path = path[1 : len(path)-1] |
| 172 | } |
| 173 | alias := "" |
| 174 | if imp.Name != nil { |
| 175 | alias = imp.Name.Name |
| 176 | } |
| 177 | return path, alias |
| 178 | } |
| 179 | |
| 180 | func find_go_dag_package(imp, filedir string) (string, bool) { |
| 181 | // Support godag directory structure |
no outgoing calls
no test coverage detected