goland 无法导入某些文件的变量、结构体、函数

简介: goland 无法导入某些文件的变量、结构体、函数

1、待导入的结构体等内容所在文件是一个单测文件,也就是以 _test.go 结尾的文件

单测文件的内容是无法被其他模块导入的

2、其他情况

goland 解决 cannot resolve directory 'xxxx'/ cannot resolve xxx 问题

相关文章
|
4月前
|
Go
GoLand软件包 home 包含多个 main 函数 请考虑改用文件种类
GoLand软件包 home 包含多个 main 函数 请考虑改用文件种类
GoLand软件包 home 包含多个 main 函数 请考虑改用文件种类
Goland 开启文件保存自动进行格式化 的两种方式
Goland 开启文件保存自动进行格式化 的两种方式
Goland 开启文件保存自动进行格式化 的两种方式
|
12月前
|
Java 编译器 Go
Go 语言 入门 && 基于 GoLand 2023.1 创建第一个Go程序
Go 语言 入门 && 基于 GoLand 2023.1 创建第一个Go程序
113 0
|
11月前
|
IDE Go 开发工具
Go开发IDE全览:GoLand vs VSCode全面解析
Go开发IDE全览:GoLand vs VSCode全面解析
459 0
|
IDE Go 开发工具
【Go·编辑器IDE】GoLand集成开发环境安装及使用教程
【Go·编辑器IDE】GoLand集成开发环境安装及使用教程
【Go·编辑器IDE】GoLand集成开发环境安装及使用教程
|
6天前
|
IDE Go 开发工具
8-13|Cannot run program "C:\Users\Administrator\AppData\Local\Temp\GoLand\___8go_build__go.exe" (in
8-13|Cannot run program "C:\Users\Administrator\AppData\Local\Temp\GoLand\___8go_build__go.exe" (in
|
4月前
|
IDE Linux Go
|
11月前
|
编译器 Go 开发工具
JetBrains GoLand 以debug运行Go程序时出现could not launch process: decoding dwarf section info at offset 0x0: too short报错之保姆级别解决方案
JetBrains GoLand 以debug运行Go程序时出现could not launch process: decoding dwarf section info at offset 0x0: too short报错之保姆级别解决方案
210 0
|
Linux Go Docker
goland如何把go项目打包进docker镜像
goland如何把go项目打包进docker镜像
393 0
Go-解决低版本Goland调试问题:Version of Delve is too old for this version...
Go-解决低版本Goland调试问题:Version of Delve is too old for this version...
1092 0
Go-解决低版本Goland调试问题:Version of Delve is too old for this version...