code: func (s *Simulator) peekEvent() *event {
  	if len(s.events) == 0 {
  		return nil
  	}
  	return &s.events[0]
  }
docs: // peekEvent peeks at the event that happens next.
  //
  // Returns nil if there are no pending events.