go idea debug,fresh热重启

 

 

idea中搭建Golang环境(Windows版)https://www.cnblogs.com/sebuntin2020/p/12434134.html

IntelliJ Idea下Go项目开启Debug调试 https://blog.csdn.net/weixin_33904756/article/details/93523368

GoLand调试报错:Version of Delve is too old for this version of Go...  

https://www.jianshu.com/p/d8ee9a6de835 

https://www.codercto.com/a/108567.html

https://studygolang.com/articles/27906?fr=sidebar

 

dlv

github:https://github.com/go-delve/delve/

https://www.jianshu.com/p/2802d71ab9e9

https://www.jianshu.com/p/7373042bba83

Version of Delve is too old for this version of Go 报错,需要升级Delve

在go path执行:

1
go get github.com/go-delve/delve/cmd/dlv

  

在 /go/src/delve/cmd/dlv 执行:

1
2
go build
go install

  

https://blog.csdn.net/oscarun/article/details/106712688

https://www.jianshu.com/p/d8ee9a6de835

http://www.zhihuclub.com/6831.shtml

 

 

fresh

1. cmd 打开命令窗口,输入一下命令 :

go get github.com/pilu/fresh

    

2.  跳转到要运行的项目的 根目录 ,运行 fresh 命令 。

    fresh 将会自动运行项目的 main.go  

    热加载大功告成。

go 使用 fresh 实现热重启:https://blog.csdn.net/sss996/article/details/94722479

 

posted @   程序生(Codey)  阅读(587)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· 因为Apifox不支持离线,我果断选择了Apipost!
点击右上角即可分享
微信分享提示