goland 报错 Main file has non-main package or doesn’t contain main function
错误现象:
Error: Run after build is not possible Main file has non-main package or doesn't contain main function
解决方法:
原因:源码需要建立在src目录下, 启动入口包名需要是main
goland 报错 Main file has non-main package or doesn’t contain main function相关推荐
- IAR STM32工程报错Error[Pe020]: identifier “GPIO_Pin_0”is undefined D:\STM32F103_Demo\App\main.c
IAR STM32工程报错: Error[Pe020]: identifier "GPIO_Pin_0" is undefined D:\STM32F103_Demo\App\ma ...
- ubuntu makefile交叉编译报错:file not recognized: file format not recognized
在linux ubuntu上编译netkit-ftp的时候报错:file not recognized: file format not recognized [root@ubuntu /arnold ...
- Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute permission
为什么80%的码农都做不了架构师?>>> Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute ...
- ionic ios查看大图报错 the file to show is not valid image,or could not be loaded
ionic ios查看大图报错 the file to show is not valid image,or could not be loaded 解决代码如下 public showImage(u ...
- 【总结】ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase
ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase to a ...
- iOS 解决报错 Module file /Users/anmo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3FOJ1MTM...
报错 Module file '/Users/anmo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3FOJ1MTM36H3U/Co ...
- CAJ文件报错提示“file does not exist”之类如何解决
我在使用7.2版本的CAJ阅读器查看CAJ文件的时候,无论打开什么文件,都会报错"the file does not exist"之类的提示:然而在无意间的搜索中,我想起(至少在该 ...
- centos 7.2执行yum -y install报错Metadata file does not match checksum
分析结论 1,Metadata file does not match checksum报错在于元文件的校验值与元文件不匹配 2,元数据是指 mnt/repodata/436345f4b666f0a4 ...
- adb push报错‘read-only file system‘
使用bat脚本,执行对android设备文件的覆盖 @echo off adb root adb push hosts /etc/ pause adb已经获取到root权限,当尝试替换/etc/hos ...
- ffmpeg合并文件报错Unsafe file name Operation not permitted
ffmpeg合并文件报错 Unsafe file name '/data/hk_sdk/demo/aaa.mp4' /data/hk_sdk/demo/test.txt: Operation not ...
最新文章
- 转录组测序和RNA-seq
- linux 3.0 kernel
- 【剑指offer】面试题 5. 替换空格
- php页面栏目访问权限,PHPCMS 栏目和内容浏览权限的解决方法
- TLS1.3握手流程以及参数详解
- 利用Helm简化Kubernetes应用部署(2)
- 大数据预测实战-随机森林预测实战(三)-数据与特征对模型的影响
- python找字符串中特殊字符_python – 在字符串中查找特殊符号
- 静态tableview组背景色的更改及自定义cell的两种方式
- 劲牌——业务流程管理方案
- keil生成bin文件
- 每秒浮点运算次数FLOPS
- python编程加减法_python编程题关于二进制加减法运算解析
- Odoo CRM获福布斯评为《2022最佳开源CRM》
- java的下标循环_java的for下标循环遍历和foreach循环遍历测试
- oracle sql查数据是否有重复
- 《Python程序设计》python常用的格式转换
- C语言中 \ 的作用
- Unity如何实现3D物体拆解组装
- opencv_contrib安装教程