• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Go搭建后台服务学习记录

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

资料:

1. go基础

https://juejin.im/entry/58329f84da2f600063074382

 

https://www.w3cschool.cn/go/

 

2.go的一个orm框架,但是我觉得不是非常好用,跟hibernate这些差距非常大

 

http://xorm.io/docs

 

https://www.cnblogs.com/guhao123/p/4159688.html

 

 

3.微服务

 

https://segmentfault.com/a/1190000015135650?utm_campaign=studygolang.com&utm_medium=studygolang.com&utm_source=studygolang.com

 

4.Docker入门教程

 

http://www.docker.org.cn/book/docker/prepare-docker-5.html

 

5.目前为止找到最易用的Go web框架,beego

 

https://beego.me/

 

 

 

beego的开源之路

https://blog.csdn.net/RA681t58CJxsgCkJ31/article/details/79276433

 

PS:框架作者像阮一峰一样开源了自己写的书,在他的Github上

 

问题:

 

1.环境变量:

 

https://www.cnblogs.com/guhao123/p/4159688.html

https://blog.csdn.net/handsomefuhs/article/details/79687381

 

mac添加环境变量,基本上都是动 bash_profile,添加完环境变量后,重启终端才生效

 

2.报错

main.go:16:2: cannot find package "github.com/micro/examples/booking/api/hotel/proto" in any of:

        /usr/local/go/src/github.com/micro/examples/booking/api/hotel/proto (from $GOROOT)

        /Users/linge/go/src/github.com/micro/examples/booking/api/hotel/proto (from $GOPATH)

main.go:17:2: cannot find package "github.com/micro/examples/booking/srv/auth/proto" in any of:

        /usr/local/go/src/github.com/micro/examples/booking/srv/auth/proto (from $GOROOT)

        /Users/linge/go/src/github.com/micro/examples/booking/srv/auth/proto (from $GOPATH)

main.go:18:2: cannot find package "github.com/micro/examples/booking/srv/geo/proto" in any of:

        /usr/local/go/src/github.com/micro/examples/booking/srv/geo/proto (from $GOROOT)

        /Users/linge/go/src/github.com/micro/examples/booking/srv/geo/proto (from $GOPATH)

main.go:19:2: cannot find package "github.com/micro/examples/booking/srv/profile/proto" in any of:

        /usr/local/go/src/github.com/micro/examples/booking/srv/profile/proto (from $GOROOT)

        /Users/linge/go/src/github.com/micro/examples/booking/srv/profile/proto (from $GOPATH)

main.go:20:2: cannot find package "github.com/micro/examples/booking/srv/rate/proto" in any of:

        /usr/local/go/src/github.com/micro/examples/booking/srv/rate/proto (from $GOROOT)

        /Users/linge/go/src/github.com/micro/examples/booking/srv/rate/proto (from $GOPATH)

main.go:11:2: cannot find package "github.com/nu7hatch/gouuid" in any of:

        /usr/local/go/src/github.com/nu7hatch/gouuid (from $GOROOT)

        /Users/linge/go/src/github.com/nu7hatch/gouuid (from $GOPATH)

../../../../go/src/github.com/micro/go-micro/broker/http_broker.go:29:2: cannot find pac
go get -u github.com/micro/go-micro
package golang.org/x/text/secure/bidirule: unrecognized import path "golang.org/x/text/secure/bidirule" (https fetch: Get https://golang.org/x/text/secure/bidirule?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
package golang.org/x/text/unicode/bidi: unrecognized import path "golang.org/x/text/unicode/bidi" (https fetch: Get https://golang.org/x/text/unicode/bidi?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
package golang.org/x/text/unicode/norm: unrecognized import path "golang.org/x/text/unicode/norm" (https fetch: Get https://golang.org/x/text/unicode/norm?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

第一个是少了包,编译不过,按照下面安装包时,会遇到国内大多数人遇到的包安装问题,即使挂vpn也无济于事,解决方法是 

gopm

 

gopm get -g -v  github.com/go-sql-driver/mysql

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
go语言基础之输入的使用发布时间:2022-07-10
下一篇:
registration_db.go发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap