Guest User

Untitled

a guest
Dec 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. type Mutex struct { ... }
  2. func (m *Mutex) Lock() { ... }
  3. type Buffer struct {
  4. data [100]byte
  5. Mutex // need not be first in Buffer
  6. }
  7. var buf = new(Buffer)
  8. buf.Lock() // == buf.Mutex.Lock()
Add Comment
Please, Sign In to add comment