code: func MarshalNamespace(resource Namespace, opts ...MarshalOption) ([]byte, error) {
  	cfg, err := collectOptions(opts)
  	if err != nil {
  		return nil, trace.Wrap(err)
  	}
  	if !cfg.PreserveResourceID {
  		// avoid modifying the original object
  		// to prevent unexpected data races
  		copy := resource
  		copy.SetResourceID(0)
  		resource = copy
  	}
  	return utils.FastMarshal(resource)
  }
docs: // MarshalNamespace marshals namespace to JSON