英文:
Documenting name / email of author of Go file
问题
go文件的作者如何记录?
Go Doc对此没有提及。在Java中,有一个特殊的@author
标签,可以列出所有的贡献者。不可接受的是在版本控制系统中引用代码提交。这不包含在代码中,如果导出的话会丢失。
澄清一下,我不想为整个项目或包添加作者信息作为元数据,就像上面提到的,它必须在文件级别上。
英文:
How is the author of a go file documented?
The Go Doc does not say a word about this. In Java there is a special @author
tag where all contributors can be listed. Not acceptable is to refer to the code commits in the version control system. This is not contained with the code and would be lost if exported.
To clarify, I do NOT want to add author information for a complete project or package as metadata, like mentioned above it must be on file level.
答案1
得分: 0
Go语言没有这个东西。
虽然你可以从导入字符串中看到源代码仓库,但是go.mod文件包含了所有的依赖项。
在仓库中添加一个readme文件是你最好的选择。
英文:
Go doesn't have this thing.
You can see the source repository from the import string though, also go.mod contains all the dependencies.
Adding a readme file on the repository is your best bet.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论