How make a function thread safe in golang How make a function thread safe in golang go go

How make a function thread safe in golang