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