mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
@@ -13,7 +13,7 @@
|
||||
假设 info 是一个需要上锁的放在共享内存中的变量。通过包含 `Mutex` 来实现的一个典型例子如下:
|
||||
|
||||
```go
|
||||
import “sync”
|
||||
import "sync"
|
||||
|
||||
type Info struct {
|
||||
mu sync.Mutex
|
||||
|
Reference in New Issue
Block a user