code: func New(c Config) *Petstore {
  	var (
  		host     = DefaultHost
  		basePath = DefaultBasePath
  		schemes  = DefaultSchemes
  	)
  
  	if c.URL != nil {
  		host = c.URL.Host
  		basePath = c.URL.Path
  		schemes = []string{c.URL.Scheme}
  	}
  
  	transport := rtclient.New(host, basePath, schemes)
  	if c.Transport != nil {
  		transport.Transport = c.Transport
  	}
  
  	cli := new(Petstore)
  	cli.Transport = transport
  	cli.Pet = pet.New(transport, strfmt.Default, c.AuthInfo)
  	cli.Store = store.New(transport, strfmt.Default, c.AuthInfo)
  	return cli
  }
docs: // New creates a new petstore HTTP client.