@ -36,12 +36,12 @@ func usePrinter(p Printer) {
printerCallbackLock.Unlock()
}
var myPrinter Printer = Printer(func(n int) {
func main() {
for i := 0; i < n; i++ {
fmt.Printf("%d\n", i)
})
usePrinter(myPrinter)