fmt.Fprintf is fine for concurrent use if you use it properly. It does a
single write system call to the output once the result is created. C does
not guarantee that, if that's how you came to think it unsafe.
The same applies to log.Printf.
-rob
On Thu, Oct 19, 2017 at 6:48 AM, Alex Buchanan
You mean fmt.Fprintf right? Formatting a string without writing to a
io.Writer (fmt.Sprintf) must be safe for concurrent use.
The "log" package should be safe for concurrent use, and has a Printf
function:
https://godoc.org/log#Logger
"""
A Logger represents an active logging object that genera