code: func (cs *ConnStats) Snapshot() *ConnStats {
  	cs.lock.Lock()
  	snapshot := *cs
  	cs.lock.Unlock()
  
  	snapshot.lock = sync.Mutex{}
  	return &snapshot
  }
docs: // Snapshot returns connection statistics' snapshot.
  //
  // Use stats returned from ConnStats.Snapshot() on live Client and / or Server,
  // since the original stats can be updated by concurrently running goroutines.