序 本文主要研究一下dubbo-go的apolloConfiguration apolloConfiguration dubbo-go-v1.4.2/config_center/apollo/impl.go const ( apolloProtocolPrefix = "http://" apolloConfigFormat = "%s.%s" ) type apolloConfiguration struct { url *common.URL listeners sync.Map appConf *agollo.AppConfig parser parser.ConfigurationParser } apolloConfiguration定义了url、listeners、appConf、parser属性 newApolloConfiguration dubbo-go-v1.4.2/config_center/apollo/impl.go func newApolloConfiguration(url *common.URL) (*apolloConfiguration, error) { c := &apolloConfiguration{ url: url, } configAddr := c.getAddressWithProtocolPrefix(url)