func GetService(name string) Service {
	mut.RLock()
	defer mut.RUnlock()
	if len(name) > 0 {
		s, ok := _mp[name]
		if ok {
			return s
		}
	}
	mylog.Info(fmt.Sprintf("[%v]:not fond ,use traverse mode", name))
	for k, v := range _mp {
		mylog.Info(k)
		return v
	}
	mylog.ErrorString("please init first.")
	return nil
}
GetService get service
package micro
import (
	"fmt"
	"sync"
	"github.com/xxjwxc/public/mylog"
	"github.com/gmsec/micro/client"
	"github.com/gmsec/micro/registry"
)
var mut sync.RWMutex
var _mp map[string]Service
var _IpAddrMp map[string]client.Client
var _RegNaming registry.RegNaming
func init() {
	_mp = make(map[string]Service)
	_IpAddrMp = make(map[string]client.Client)
}