code: func GetEndorserClient(address, tlsRootCertFile string) (pb.EndorserClient, error) {
  	var peerClient *PeerClient
  	var err error
  	if address != "" {
  		peerClient, err = NewPeerClientForAddress(address, tlsRootCertFile)
  	} else {
  		peerClient, err = NewPeerClientFromEnv()
  	}
  	if err != nil {
  		return nil, err
  	}
  	return peerClient.Endorser()
  }
docs: // GetEndorserClient returns a new endorser client. If the both the address and
  // tlsRootCertFile are not provided, the target values for the client are taken
  // from the configuration settings for "peer.address" and
  // "peer.tls.rootcert.file"