我对gin.WrapH函数utils.go有类似的问题。尝试了Override File Type本地模块路径中的 utils.go 选项,该选项将文件更改为 Go 文件,但有一个小十字符号,其中工具提示标记该文件已从编译中排除。Unresolved reference只有当我选择文件、导航到File -> File Properties -> Associate with File Type -> Register new file type association并选择时,错误才会消失Go files