code: func ConfigToClient(cfg *Config) (*api.Config, error) {
  	clientCfg := api.DefaultConfig()
  	if cfg.Address != "" {
  		clientCfg.Address = cfg.Address
  	}
  	return clientCfg, nil
  }
docs: // ConfigToClient transforms Config into api.Config,
  // which is ready for use with underlying consul package.