How to make a variable thread-safe

前端 未结 2 1231
孤街浪徒
孤街浪徒 2021-01-12 11:48

I\'m relatively new to Go, and I need to make a variable thread-safe. I know in java you can just use the synchronized keyword, but nothing like that seems to

2条回答
提交回复
热议问题