├── LICENSE ├── README.md ├── SUMMARY.md ├── images └── govendor-playstack.JPG └── posts ├── accessing-map.md ├── array.md ├── buffered-read.md ├── channel-types.md ├── check-data-race.md ├── conversion-between-array-and-slice.md ├── copy.md ├── create-go-workspace.md ├── debugging.md ├── decorate-types-to-implement-io-reader-interface.md ├── defer.md ├── error-vs-errors.md ├── functional-literals.md ├── go-build-vs-go-install.md ├── go-get-command.md ├── goroutine.md ├── how-to-build-go-development-environment.md ├── init-function.md ├── interface.md ├── io-reader-interfaces.md ├── io-writer-interface.md ├── need-not-close-every-channel.md ├── nil-channel-vs-closed-channel.md ├── nil-slice-vs-nil-map.md ├── package.md ├── pass-slice-as-a-function-argument.md ├── prepend.md ├── processing-json-object.md ├── range.md ├── reallocating-underlying-array-of-slice.md ├── select-operation.md ├── send-and-receive-operations-on-channel.md ├── short-variable-declarations.md ├── sort.md ├── string.md ├── switch.md ├── the-internals-of-slice.md ├── two-dimensional-slice.md ├── type-assertion-and-type-switch.md ├── types.md ├── unbuffered-and-buffered-channels.md ├── use-govendor-to-implement-vendoring.md └── use-sync-waitgroup-to-synchronize-goroutines.md /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/README.md -------------------------------------------------------------------------------- /SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/SUMMARY.md -------------------------------------------------------------------------------- /images/govendor-playstack.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/images/govendor-playstack.JPG -------------------------------------------------------------------------------- /posts/accessing-map.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/accessing-map.md -------------------------------------------------------------------------------- /posts/array.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/array.md -------------------------------------------------------------------------------- /posts/buffered-read.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/buffered-read.md -------------------------------------------------------------------------------- /posts/channel-types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/channel-types.md -------------------------------------------------------------------------------- /posts/check-data-race.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/check-data-race.md -------------------------------------------------------------------------------- /posts/conversion-between-array-and-slice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/conversion-between-array-and-slice.md -------------------------------------------------------------------------------- /posts/copy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/copy.md -------------------------------------------------------------------------------- /posts/create-go-workspace.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/create-go-workspace.md -------------------------------------------------------------------------------- /posts/debugging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/debugging.md -------------------------------------------------------------------------------- /posts/decorate-types-to-implement-io-reader-interface.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/decorate-types-to-implement-io-reader-interface.md -------------------------------------------------------------------------------- /posts/defer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/defer.md -------------------------------------------------------------------------------- /posts/error-vs-errors.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/error-vs-errors.md -------------------------------------------------------------------------------- /posts/functional-literals.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/functional-literals.md -------------------------------------------------------------------------------- /posts/go-build-vs-go-install.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/go-build-vs-go-install.md -------------------------------------------------------------------------------- /posts/go-get-command.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/go-get-command.md -------------------------------------------------------------------------------- /posts/goroutine.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/goroutine.md -------------------------------------------------------------------------------- /posts/how-to-build-go-development-environment.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/how-to-build-go-development-environment.md -------------------------------------------------------------------------------- /posts/init-function.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/init-function.md -------------------------------------------------------------------------------- /posts/interface.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/interface.md -------------------------------------------------------------------------------- /posts/io-reader-interfaces.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/io-reader-interfaces.md -------------------------------------------------------------------------------- /posts/io-writer-interface.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/io-writer-interface.md -------------------------------------------------------------------------------- /posts/need-not-close-every-channel.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/need-not-close-every-channel.md -------------------------------------------------------------------------------- /posts/nil-channel-vs-closed-channel.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/nil-channel-vs-closed-channel.md -------------------------------------------------------------------------------- /posts/nil-slice-vs-nil-map.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/nil-slice-vs-nil-map.md -------------------------------------------------------------------------------- /posts/package.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/package.md -------------------------------------------------------------------------------- /posts/pass-slice-as-a-function-argument.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/pass-slice-as-a-function-argument.md -------------------------------------------------------------------------------- /posts/prepend.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/prepend.md -------------------------------------------------------------------------------- /posts/processing-json-object.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/processing-json-object.md -------------------------------------------------------------------------------- /posts/range.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/range.md -------------------------------------------------------------------------------- /posts/reallocating-underlying-array-of-slice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/reallocating-underlying-array-of-slice.md -------------------------------------------------------------------------------- /posts/select-operation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/select-operation.md -------------------------------------------------------------------------------- /posts/send-and-receive-operations-on-channel.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/send-and-receive-operations-on-channel.md -------------------------------------------------------------------------------- /posts/short-variable-declarations.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/short-variable-declarations.md -------------------------------------------------------------------------------- /posts/sort.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/sort.md -------------------------------------------------------------------------------- /posts/string.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/string.md -------------------------------------------------------------------------------- /posts/switch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/switch.md -------------------------------------------------------------------------------- /posts/the-internals-of-slice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/the-internals-of-slice.md -------------------------------------------------------------------------------- /posts/two-dimensional-slice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/two-dimensional-slice.md -------------------------------------------------------------------------------- /posts/type-assertion-and-type-switch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/type-assertion-and-type-switch.md -------------------------------------------------------------------------------- /posts/types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/types.md -------------------------------------------------------------------------------- /posts/unbuffered-and-buffered-channels.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/unbuffered-and-buffered-channels.md -------------------------------------------------------------------------------- /posts/use-govendor-to-implement-vendoring.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/use-govendor-to-implement-vendoring.md -------------------------------------------------------------------------------- /posts/use-sync-waitgroup-to-synchronize-goroutines.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NanXiao/golang-101-hacks/HEAD/posts/use-sync-waitgroup-to-synchronize-goroutines.md --------------------------------------------------------------------------------