I'm trying to get a list of all of our endpoints.
We use Goa.
I noticed that we add all of our endpoints to a service (goa.New("service_name")
). I also realized that if I print service.Mux I can see all the endpoints. However, the endpoints look like they are in a Map, which is contained by an object. When printing service.Mux, I see memory addresses as well. How do I get just the endpoints alone?
fmt.Println("Service Mux: ", service.Mux)
&{0xc42092c640 map[OPTIONS/api/my/endpoint/:endpointID/relationships/links:0x77d370 ...]}