根据以下规范,您无法执行此操作
import:
The import names an identifier (PackageName) to be used for access and an importPath that specifies the package to be imported.importDecl = "import" ( importSpec | "(" { importSpec ";" } ")" ) .importSpec = [ "." | PackageName ] importPath .importPath = string_lit .导入语法需要包名称或包路径。因此,没有通配符导入。
该声明将阐明原因;
The PackageName is used in qualified identifiers to access exported identifiers of the package within the importing source file.
您必须指定所指元素在哪个包中存在。例如
bar.Get.Basic.Req.Headers。没有明确的导入就无法确定。



