[初学者] 优质 Go 框架,书籍和软件清单

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

推荐书籍《Go语言实战》

在线好书《Go语言高级编程》:https://chai2010.cn/advanced-go-programmin...

资源库:
github: https://github.com/avelino/awesome-go

自己整理的使用比较广泛的资源

包管理推荐使用官方的 dep:https://github.com/golang/dep

轻量API框架推荐 iris:https://github.com/kataras/iris

重框架推荐国人的 beego:https://github.com/astaxie/beego

路由推荐 httprouter :https://github.com/julienschmidt/httproute... 或 mux https://github.com/gorilla/mux

json处理:https://github.com/tidwall/gjson 可获取json任意位置的值,用不好会内存泄露。解决:https://go.learnku.com/articles/355

配置管理:https://github.com/spf13/viper

命令行CLI:https://github.com/spf13/cobra

ORM:https://github.com/jinzhu/gorm

Logger:https://github.com/sirupsen/logrus

Goroutine 同步关闭包:https://github.com/oklog/run

等自己学习深入后继续推荐

做自己
本帖已被设为精华帖!
讨论数量: 6
fatrbaby

dep已经被官方弃了,官方现在开始推vgo了。

5年前 评论
DukeAnn

@fatrbaby 感谢提醒,今天看了以下两个包。从官方文档和仓库更新来看,dep并没有被放弃。
https://golang.github.io/dep/docs/introduc...

Dep is a tool intended primarily for use by developers, to support the work of actually writing and shipping code. It is not intended for end users who are installing Go software - that's what go get does.

适用于开发者的包管理,不适合给安装Go软件的用户使用。

vgo 还是一个早期原型,文档也不是很完善。
https://github.com/golang/vgo

This is still a very early prototype. You are likely to run into bugs. Please file bugs in the main Go issue tracker, golang.org/issue, and put the prefix x/vgo: in the issue title.

而且 dep 概念和 composer 很像,我还是选择 dep 了

5年前 评论

@DukeAnn @Summer 社区能翻译一下 Dep 的文档吗 :speak_no_evil:

5年前 评论
DukeAnn

@8090Lambert 看个人选择了,用惯了就是好的

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!