code: func AnonymousClientConfig(config *Config) *Config {
  	// copy only known safe fields
  	return &Config{
  		Host:          config.Host,
  		APIPath:       config.APIPath,
  		ContentConfig: config.ContentConfig,
  		TLSClientConfig: TLSClientConfig{
  			Insecure:   config.Insecure,
  			ServerName: config.ServerName,
  			CAFile:     config.TLSClientConfig.CAFile,
  			CAData:     config.TLSClientConfig.CAData,
  		},
  		RateLimiter: config.RateLimiter,
  		UserAgent:   config.UserAgent,
  		QPS:         config.QPS,
  		Burst:       config.Burst,
  		Timeout:     config.Timeout,
  		Dial:        config.Dial,
  	}
  }
docs: // AnonymousClientConfig returns a copy of the given config with all user credentials (cert/key, bearer token, and username/password) and custom transports (WrapTransport, Transport) removed