摘要:
参考: https://groups.google.com/forum/#!topic/golang-nuts/oawcWAhO4Ow Hi, Nan Xiao <xiaona...@gmail.com> writes: > (1) GOPATH="/root/go"; > (2) There is 阅读全文
摘要:
有些问题,我以前都是似懂非懂,没有去弄个究竟!!!!! 这个习惯非常不好,搞得有些东西看似懂了,又不能百分之百说自己懂了,可能下次就弄不出来了,这样是不可取的。 不能有这种做事的风格。 就像写go的代码的时候, 要引用第三方库的时候, go get github.com/go-redis/redis 阅读全文
摘要:
原文: https://golang.org/doc/code.html#PackagePaths 如果demo目录下有两个文件 main.go 和mian2.go的话,main.go 和main2.go文件中的package 定义的名字要是同一个 不同的话,是会报错的。 main2.go main 阅读全文