The convention (at least for the standard library) is this: no function / method is safe for simultaneous use unless explicitly specified (or obvious from the context).
You cannot record simultaneously os.Filethrough Write()without external synchronization.
source
share