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)的小记 - 云+社区 - 腾讯云 后续补充 ... |
评论列表(0条)