golang-standards 社区提供了一个golang 项目的参考结构,同时提供了比较完整的说明 go 目录 /cmd 项目的主干,次目录应该足够简单 /interenal 内部的,不需要分享到外部的,这个属于golang 内部的一个特性,我们也会在好多开源项目中看到 /pkg 可复用的一些代码库 /vendor vendor 模式的包,现在推荐的玩法是g
参考资料 https:///golang-standards/project-layout https:///danceyoung/paper-code/blob/master/package-oriented-design/
Standard Go Project Layout. Contribute to golang-standards/project-layout development by creating an account on GitHub.
golang-standards Popular repositoriesLoading project-layoutproject-layoutPublic Standard Go Project Layout Makefile52.2k5.3k project-templateproject-templatePublic Sample Go Project Template (based on the layout from the Standard Project Layout repo)...
将github.com/golang-standards/project-layout替换为你的项目的引用。 GoDoc:它将提供GoDoc生成的文档的在线版本。更改链接以指向你的项目。 Release:它将显示你项目的最新版本号。更改github链接以指向你的项目。 注意 WIP项目是一个自以为是的项目模板其中带有sample/reusable配置、脚本和代码。 空文件 举报 举报...
相信很多人纠结项目如何组织结构时,看到过 GitHub 上的这个项目:https://github.com/golang-standards/project-layout,到目前为止,这个项目已经 22.8k+ Star 了。 然而,前些天,Go Team Leader Russ Cox 实在看不下去了,在这个项目提了一个 issue:this is not a standard Go project layout:https://github.com...
It is unfortunate that this is being put forth as "golang-standards" when it really is not. I'm commenting here because I am starting to see people say things like "you are not using the standard Go project layout" and linking to this repo. ...
Application dependencies (managed manually or by your favorite dependency management tool like the new built-in, but still experimental, [`modules`](https://github.com/golang/go/wiki/Modules) feature). Application dependencies (managed manually or by your favorite dependency management tool like t...
Standard Go Project Layout. Contribute to golang-standards/project-layout development by creating an account on GitHub.