栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Go语言

Go - 项目实践工具汇总/收集

Go语言 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Go - 项目实践工具汇总/收集

1.应用场景

主要用于项目开发, 收集各种工具,良好实践等。

2.学习/操作

1.文档阅读

09|即学即练:构建一个Web服务就是这么简单-极客时间

gin框架的六种热加载方法,你都知道吗 - 知乎

GitHub - codegangsta/gin: Live reload utility for Go web servers  -- hot-load 推荐

2.整理输出 2.1 热重载 / hot-load 1. gin

GitHub - codegangsta/gin: Live reload utility for Go web servers -- hot-load 

➜  gin-demo go get github.com/pilu/fresh
go: downloading github.com/pilu/fresh v0.0.0-20190826141211-0fa698148017
go: downloading github.com/mattn/go-colorable v0.1.12
go: downloading github.com/howeyc/fsnotify v0.9.0
go: downloading github.com/pilu/config v0.0.0-20131214182432-3eb99e6c0b9a
go get: installing executables with 'go get' in module mode is deprecated.
        To adjust and download dependencies of the current module, use 'go get -d'.
        To install using requirements of the current module, use 'go install'.
        To install ignoring the current module, use 'go install' with a version,
        like 'go install example.com/cmd@latest'.


➜  gin-demo go get github.com/codegangsta/gin
go: downloading github.com/codegangsta/gin v0.0.0-20211113050330-71f90109db02
go: downloading github.com/urfave/cli v1.22.5
go: downloading github.com/mattn/go-shellwords v1.0.12
go: downloading github.com/codegangsta/envy v0.0.0-20141216192214-4b78388c8ce4
go: downloading github.com/0xAX/notificator v0.0.0-20220220101646-ee9b8921e557
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go get: installing executables with 'go get' in module mode is deprecated.
        To adjust and download dependencies of the current module, use 'go get -d'.
        To install using requirements of the current module, use 'go install'.
        To install ignoring the current module, use 'go install' with a version,
➜  gin-demo ls

可以换成

go get -d github.com/codegangsta/gin

执行路径要对

 

 访问测试

但是似乎存在一点问题,

就是Build finished之后,便一直卡着。

具体原因和解决办法: TBD 

2. bee

GitHub - beego/bee: Bee is a tool for helping develop with beego app framework.

To install bee use the go get command:

go get github.com/beego/bee/v2

Then you can add bee binary to PATH environment variable in your ~/.bashrc or ~/.bash_profile file:

export PATH=$PATH:/bin

If you already have bee installed, updating bee is simple:

go get -u github.com/beego/bee/v2

 操作过程截图

开启服务

bee run

这里直接通过绝对路径执行bee 程序

➜  gin-demo /Users/kumu/go/bin/bee run

2.2 ORM

暂时参考一下吧

关于gorm多表联合查询(left join)的小记 - 云+社区 - 腾讯云

后续补充

...

3.问题/补充

TBD

4.参考

TBD

后续补充

...

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/904979.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号