function gocd { cd `go list -f '{{.Dir}}' $1` }
~ $ gocd .../markdownfmt markdownfmt $ pwd /Users/Dmitri/Dropbox/Work/2013/GoLand/src/github.com/shurcooL/markdownfmt markdownfmt $ _