GoLand软件包 home 包含多个 main 函数 请考虑改用文件种类

简介: GoLand软件包 home 包含多个 main 函数 请考虑改用文件种类

使用GoLand开发go,当一个包里边有多个main函数,使用图示运行按钮时,会报错。

解决方法:直接单击文件,使用右键运行即可。

 

目录
相关文章
Goland 开启文件保存自动进行格式化 的两种方式
Goland 开启文件保存自动进行格式化 的两种方式
Goland 开启文件保存自动进行格式化 的两种方式
goland 无法导入某些文件的变量、结构体、函数
goland 无法导入某些文件的变量、结构体、函数
|
10月前
|
Java 编译器 Go
Go 语言 入门 && 基于 GoLand 2023.1 创建第一个Go程序
Go 语言 入门 && 基于 GoLand 2023.1 创建第一个Go程序
94 0
|
9月前
|
IDE Go 开发工具
Go开发IDE全览:GoLand vs VSCode全面解析
Go开发IDE全览:GoLand vs VSCode全面解析
399 0
|
IDE Go 开发工具
【Go·编辑器IDE】GoLand集成开发环境安装及使用教程
【Go·编辑器IDE】GoLand集成开发环境安装及使用教程
【Go·编辑器IDE】GoLand集成开发环境安装及使用教程
|
2月前
|
IDE Linux Go
|
9月前
|
编译器 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报错之保姆级别解决方案
158 0
|
Linux Go Docker
goland如何把go项目打包进docker镜像
goland如何把go项目打包进docker镜像
374 0
Go-解决低版本Goland调试问题:Version of Delve is too old for this version...
Go-解决低版本Goland调试问题:Version of Delve is too old for this version...
1052 0
Go-解决低版本Goland调试问题:Version of Delve is too old for this version...
|
编译器 Go
【七天入门Go语言】Goland && Golang 的安装与配置 | 第一天
【七天入门Go语言】Goland && Golang 的安装与配置 | 第一天
173 0
【七天入门Go语言】Goland && Golang 的安装与配置 | 第一天