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: service_registry.go
    path of file: ./repos/magma/orc8r/lib/go/registry
    
    the code of the file until where you have to start completion: /*
Copyright 2020 The Magma Authors.

This source code is licen
    
func LoadServiceRegistryConfigs() ([]ServiceLocation, error) {
	configsByModule, err := config.GetServiceConfigs(serviceRegistryFilename)
	if err != nil {
		return nil, err
	}

	var ret []ServiceLocation

	for module, cfg := range configsByModule {
		rawMap, err := getRawMap(cfg)
		if err != nil {
			glog.Warningf("Ignoring malformed service registry %s:%s.yml", module, serviceRegistryFilename)
			continue
		}
		locations, err := convertToServiceLocations(rawMap)
		if err != nil {
			return nil, fmt.Errorf("load service registry for %s:%s.yml: %w", module, serviceRegistryFilename, err)
		}
		ret = append(ret, locations...)
	}

	return ret, nil
}