mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-12-20 12:44:20 +08:00
ch9: fix code format
This commit is contained in:
@@ -118,8 +118,8 @@ func Icon(name string) image.Image { return icons[name] }
|
||||
|
||||
下面是一個重寫了的銀行的例子,這個例子中balance變量被限製在了monitor goroutine中,名爲teller:
|
||||
|
||||
<u><i>gopl.io/ch9/bank1</i></u>
|
||||
```go
|
||||
gopl.io/ch9/bank1
|
||||
// Package bank provides a concurrency-safe bank with one account.
|
||||
package bank
|
||||
|
||||
|
||||
Reference in New Issue
Block a user