Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Mutex struct { ... }
- func (m *Mutex) Lock() { ... }
- type Buffer struct {
- data [100]byte
- Mutex // need not be first in Buffer
- }
- var buf = new(Buffer)
- buf.Lock() // == buf.Mutex.Lock()
Add Comment
Please, Sign In to add comment