code: func GetImportedName(path string, ctx *Context) (string, bool) {
  	importName, imported := ctx.Imports.Imported[path]
  	if !imported {
  		return "", false
  	}
  
  	if _, initonly := ctx.Imports.InitOnly[path]; initonly {
  		return "", false
  	}
  
  	if alias, ok := ctx.Imports.Aliased[path]; ok {
  		importName = alias
  	}
  	return importName, true
  }
docs: // GetImportedName returns the name used for the package within the
  // code. It will resolve aliases and ignores initialization only imports.