code: func (s *State) GlobalCallbacks() []GlobalCallback {
  	s.mu.RLock()
  	defer s.mu.RUnlock()
  
  	return append([]GlobalCallback{}, s.globalCallbacks...)
  }
docs: // GlobalCallbacks returns all registered GlobalCallbacks.