You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: client.go
    path of file: ./repos/api-server/common/we_work
    
    the code of the file until where you have to start completion: package we_work

import (
	"github.com/pkg/errors"
	"openscrm/common/log"
	"openscrm/pkg"
	"openscrm/pkg/easywework"
	"sync"
)

var App *workwx.App
    
func NewClient(conf CorpConf) (client Client, err error) {
	client.Contact, err = NewWxApp(conf.ExtCorpID, conf.ContactSecret, 0)
	if err != nil {
		err = errors.Wrap(err, "new Contact app failed")
		return
	}

	client.Customer, err = NewWxApp(conf.ExtCorpID, conf.CustomerSecret, 0)
	if err != nil {
		err = errors.Wrap(err, "new Customer app failed")
		return
	}

	client.MainApp, err = NewWxApp(conf.ExtCorpID, conf.MainAgentSecret, conf.MainAgentID)
	if err != nil {
		err = errors.Wrap(err, "new main app failed")
		return
	}

	return
}