bee run出现
0003 Failed to build the application: ..\github. com\astaxie\beego\staticfile.
go:31:2: cannot find package "github.com/hashicorp/golang-lru" in any of:
此问题的出现多半是因为最开始下载beego包时,没有下载完整造成的,所以要把未下载完的包补齐。
如我出现的问题是 github.com/hashicorp/golang-lru这个包缺失,去GitHub找到自己缺失的项目,并下载
![bee run出现Failed to build the application.... cannot find package...](https://img.it610.com/image/info8/9cf09ad74f5b40fd9dca85a0d1673e82.jpg)
文章图片
【bee run出现Failed to build the application.... cannot find package...】在C:\Users\26825\go\src\github.com\hashicorp这个目录下
git clone https://github.com/hashicorp/golang-lru.git
之后再运行运行bee run就行了
推荐阅读
- Go|Docker后端部署详解(Go+Nginx)
- GO|GO,GO,GO!
- Go成长之路|go中判断空字符串、nil和len(t)的用法
- go编译tools
- go grpc安装与使用
- goroutine 调度原理
- Go|Go进阶之路——复杂类型
- Go进阶之路——变量
- Go进阶之路——流程控制语句