把共享数据放在一个线程中,可以避免datarace 参考文献: https://blog.youkuaiyun.com/liuxinmingcode/article/details/50044327 https://studygolang.com/articles/9262