Remove using package global variable
hzxuzhonghu opened this issue · comments
Tiger Xu / Zhonghu Xu commented
In go, it is not recommended to use global variables, unless it is a constant.
Because in go these global vars can be mutated conmcurrently, which may introduce race conditions
Tiger Xu / Zhonghu Xu commented
/assign