参考

https://medium.com/@octo_pus/safe-concurrency-in-go-mutex-atomic-and-channels-8299e4740a09