当前位置:网站首页>Once beego failed to find bee after passing the go get command Exe's pit

Once beego failed to find bee after passing the go get command Exe's pit

2022-06-25 23:30:00 Liziti

High quality resource sharing

Learning route guidance ( Click unlock ) Knowledge orientation Crowd positioning
🧡 Python Actual wechat ordering applet 🧡 Progressive class This course is python flask+ Perfect combination of wechat applet , From the deployment of Tencent to the launch of the project , Create a full stack ordering system .
Python Quantitative trading practice beginner Take you hand in hand to create an easy to expand 、 More secure 、 More efficient quantitative trading system

Study goweb Development ,gin It's a lightweight framework . If you want a class such as aspnetmvc Help us build the goweb frame ,beego It's worth learning . otherwise gin You need to build a lot of code by yourself . Novice or first learn ready-made to save time and cost .

Novice experience , Don't give more advice to other places .

First step : Build a project first , Because the online tutorial is to perform go get github.com/beego/beego/[email protected], Generate bee.exe, So my stupid way is to build a project , perform go mod init main.go, To perform go get github.com/beego/beego/[email protected]

Then something terrible happened , Searching the entire computer did not find most of the tutorials called bee.exe.

Then time is wasted on Baidu , Still not found . Know the colleagues who found this question . Based on the latest edition go1.18 install beego Found that it was not found anywhere on the disk bee command · Issue #4934 · beego/beego (github.com)

The key message is  ** install go.17 The command doesn't seem to be go get 了 ,go install try ,bee The source file is compiled and copied to bin Next ,** Here the problem is finally clear . Then do it ...

The second step :

go env Total found path route , My path is d:\go below . So we found bee Download source code : Path as follows :D:\Go\pkg\mod\github.com\beego\bee\[email protected]

 The third step : Input here cmd Will open cmd Folder is not open cmd Command window , Because this directory has cmd Folder . No problem , stay cmd Enter... Under the folder cmd, Again cd .. Return to [email protected] Folder 

Step four :go mod tidy Organize the code

Step five : perform go install

Go back here gopath/bin see , In my heart bee.exe Finally came out , Then do what you should do

adopt bee newly build mvc project

Study beego Code …

原网站

版权声明
本文为[Liziti]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251956496610.html