String returns a go import statement
()
| 76 | |
| 77 | // String returns a go import statement |
| 78 | func (gi goImport) String() string { |
| 79 | if gi.Name != "" { |
| 80 | return fmt.Sprintf("%s %q", gi.Name, gi.Path) |
| 81 | } |
| 82 | return fmt.Sprintf("%q", gi.Path) |
| 83 | } |
| 84 | |
| 85 | // importMap maps external OpenAPI specifications files/urls to external go packages |
| 86 | type importMap map[string]goImport |
no outgoing calls