当前位置:网站首页>记一次beego通过go get命令后找不到bee.exe的坑
记一次beego通过go get命令后找不到bee.exe的坑
2022-06-25 21:59:00 【李自提】
优质资源分享
| 学习路线指引(点击解锁) | 知识定位 | 人群定位 |
|---|---|---|
| 🧡 Python实战微信订餐小程序 🧡 | 进阶级 | 本课程是python flask+微信小程序的完美结合,从项目搭建到腾讯云部署上线,打造一个全栈订餐系统。 |
| Python量化交易实战 | 入门级 | 手把手带你打造一个易扩展、更安全、效率更高的量化交易系统 |
学习goweb开发,gin是个轻量级的框架。如果想要一个类如aspnetmvc帮我们搭建好了的goweb框架,beego值得去学习。否则gin下面需要动手构建好多代码。新手还是先学现成的节约时间成本。
新手经验,不对地方多指教。
第一步:先建一个项目,因为网上教程是执行go get github.com/beego/beego/[email protected],生成bee.exe,所以我的笨办法就是建个项目,执行go mod init main.go,再去执行go get github.com/beego/beego/[email protected]。
然后可怕的事情发生了,搜索整个电脑没有发现大部分教程所谓的bee.exe。
然后时间一分一秒的在百度上浪费了,依然没找到。知道发现这个提问的同仁。基于最新版go1.18安装beego后发现未在磁盘任何地方找到bee命令 · Issue #4934 · beego/beego (github.com)
关键的信息就是 **安装 go.17 命令好像不是 go get了,go install 试试,bee是源文件自己编译后复制到bin下,**到这里问题终于清楚了。接下来照做。。。
第二步:
go env找到共path路径,我的路径在d:\go下面。所以找到bee的下载源码:路径如下:D:\Go\pkg\mod\github.com\beego\bee\[email protected]
第三步:这里输入cmd会打开cmd文件夹不是打开cmd命令窗口,因为这个目录下面有cmd文件夹。没关系,在cmd文件夹下面输入cmd,再cd ..退回到[email protected]文件夹
第四步:go mod tidy整理代码
第五步:执行go install
到这里再回去gopath/bin查看,心心念念的bee.exe终于出来了,接下来该干嘛就干嘛了
通过bee 新建mvc项目

学习beego代码…
边栏推荐
- 2022年河南省第一届职业技能大赛网络安全项目试题
- The applet draws a simple pie chart
- Unity的Ping類使用
- 汇编语言核心要点
- ES6 --- 数值扩展、对象拓展
- Transformers load pre training model
- STM32 development board + smart cloud aiot+ home monitoring and control system
- Actual combat: how to quickly change font color in typera (blog sharing - perfect) -2022.6.25 (solved)
- pdm导入vscode的实现方式
- Implementation of importing vscode from PDM
猜你喜欢

Use and difference between ue4\ue5 blueprint node delay and retroggable delay

Es7/es9 -- new features and regularities

Trillions of hot money smashed into the space economy. Is it really a good business?

Multi modal data can also be Mae? Berkeley & Google proposed m3ae to conduct Mae on image and text data! The optimal masking rate can reach 75%, significantly higher than 15% of Bert

What is 5g? What can 5g do? What will 5g bring in the future?

ES7/ES9 -- 新特性与正则

ES6 const constants and array deconstruction

多台云服务器的 Kubernetes 集群搭建
[email protected]@COLLATION_ CONNECTION */"/>. SQL database import error: / *! 40101 SET @OLD_ COLLATION_ [email protected]@COLLATION_ CONNECTION */

首个大众可用PyTorch版AlphaFold2复现,哥大开源OpenFold,star量破千
随机推荐
Fastjson deserialization randomness failed
Paper notes: multi tag learning MSWl
剑指 Offer 46. 把数字翻译成字符串(DP)
Unity technical manual - color in life cycle coloroverlifetime-- speed color colorbyspeed
oracle -- 表操作
Comp2913 database
Unity技术手册 - 粒子发射和生命周期内速度子模块
No absurd tea applet - rule change
问题记录与思考
Network security project questions of the first Henan vocational skills competition in 2022
Idea FAQ collection
. SQL database import error: / *! 40101 SET @OLD_ COLLATION_ [email protected]@COLLATION_ CONNECTION */
Baidu: in 2022, the top ten hot spots will rise and the profession will be released. There is no suspense about the first place!
ES6 const constants and array deconstruction
ADB common commands
Es6-- set
Live800在线客服系统:跨越时空做生意,从每次互动开始
Implementation of importing vscode from PDM
Sword finger offer 46 Translate numbers to strings (DP)
小程序-视图与逻辑