@ -23,8 +23,10 @@ func callOnMeGo(n int) {
type Printer func(int)
var printerCallback Printer
var printerCallbackLock sync.RWMutex
var (
printerCallback Printer
printerCallbackLock sync.RWMutex
)
func usePrinter(p Printer) {
printerCallbackLock.Lock()