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执行:

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

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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值