2017年9月16日星期六

Govendor explained

With progressing in programming in Golang, chances are that you'll deal with go package dependencies. Govendor does a pretty good job in this regard and https://zerokspot.com/weblog/2017/04/23/getting-started-with-govendor/ explains common scenarios where govender could serve with practical examples.

2017年9月13日星期三

Golang project structures

If you are, like me, a new gopher, you'll probably be wondering how am I supposed to structure a golang project. There are packages, there are directories, there are $GOPATH, etc. Well, if that's the case, the following readings are right for you.

https://talks.golang.org/2014/organizeio.slide includes theories as well as tricks about not only project structures but how to make your golang programming more efficiently in general, like CDPATH.

- https://dave.cheney.net/2014/12/01/five-suggestions-for-setting-up-a-go-project is more of a explainatory style, covering all aspects about code structures in detail.

2017年9月10日星期日

Golang closures

http://keshavabharadwaj.com/2016/03/31/closure_golang/ - explains golang closure comprehensively, from anonymous functions all the way down.

Unlike https://tour.golang.org/moretypes/25 and https://gobyexample.com/closures which ranks better in google but only explains stuff with very simple examples.