50年前,Hello World发明者第一次提交的Go代码长这样……
commit 7d7c6a97f815e9279d08cfaea7d5efb5e90695a8Author: Brian Kernighan <bwk>Date: Tue Jul 18 19:05:45 1972 -0500hello, worldR=kenDELTA=7 (7 added, 0 deleted, 0 changed)diff --git a/src/pkg/debug/macho/testdata/hello.b b/src/pkg/debug/macho/testdata/hello.bnew file mode 100644index 0000000000..05c4140424--- /dev/null+++ b/src/pkg/debug/macho/testdata/hello.b@@ -0,0 +1,7 @@+main( ) {+ extrn a, b, c;+ putchar(a); putchar(b); putchar(c); putchar('!*n');+}+a 'hell';+b 'o, w';+c 'orld';
在接下来的十多年中,布莱恩仍在不断进行修改:
直到现在,这些早期提交的文件(即最终的ANSI C 版本)仍保留在Go repo中。
【参考资料】
https://repography.com/blog/go-first-commit https://github.com/golang/go/commit/0bb0b61d6a85b2a1a33dcbc418089656f2754d32 https://github.com/golang/go/commit/0744ac969119db8a0ad3253951d375eb77cfce9e https://github.com/golang/go/commit/d82b11e4a46307f1f1415024f33263e819c222b8 
正文结束
2.深圳一普通中学老师工资单曝光,秒杀程序员,网友:敢问是哪个学校毕业的?
3.从零开始搭建创业公司后台技术栈
4.程序员一般可以从什么平台接私活?
5.清华大学:2021 元宇宙研究报告!
6.为什么国内 996 干不过国外的 955呢?
7.这封“领导痛批95后下属”的邮件,句句扎心!
8.15张图看懂瞎忙和高效的区别!

评论
