code: func NewClient(cfg *api.Config) (store *Client, err error) {
  	var c *api.Client
  	if c, err = api.NewClient(cfg); err != nil {
  		return nil, fmt.Errorf("failed to create Consul client %s", err)
  	}
  
  	peers, err := c.Status().Peers()
  	if err != nil {
  		return nil, err
  	}
  	consulLogger.Infof("consul peers: %v", peers)
  
  	return &Client{
  		client: c,
  	}, nil
  
  }
docs: // NewClient creates new client for Consul using given address.