// ListServiceGroupsHandler handle GET /service-groups

ListServiceGroupsHandler handle GET /service-groups
// ListServiceGroupsHandler handle GET / service - groups
func ListServiceGroupsHandler(c *routing.Context) error {
	serviceGroupService, _ := getServiceGroupsService(c)
	sg, err := serviceGroupService.GetServiceGroups()
	if err != nil {
		return http.Error(c, strconv.Quote(err.Error()), 400, ServiceDiscoveryServiceName())
	}
	json, _ := json.Marshal(sg)
	return http.Ok(c, string(json), ServiceDiscoveryServiceName())
}
func ListServiceGroupsHandler ( c * routing . Context ) error { serviceGroupService , _ := getServiceGroupsService ( c ) sg , err := serviceGroupService . GetServiceGroups ( ) if err != nil { return http . Error ( c , strconv . Quote ( err . Error ( ) ) , 400 , ServiceDiscoveryServiceName ( ) ) } json , _ := json . Marshal ( sg ) return http . Ok ( c , string ( json ) , ServiceDiscoveryServiceName ( ) ) }
ListServiceGroupsHandler handle GET /service-groups
ListServiceGroupsHandler handle GET / service - groups