code: func (s *State) RegisterGlobalCallbacks(f ...GlobalCallback) {
  	s.mu.Lock()
  	defer s.mu.Unlock()
  
  	s.globalCallbacks = append(s.globalCallbacks, f...)
  }
docs: // RegisterGlobalCallbacks registers the given GlobalCallback(s) with State.