zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.35k stars 3.96k forks source link

Can I print the routing address when the project starts? #4362

Closed tuye01 closed 2 months ago

tuye01 commented 2 months ago

Can I print the routing address when the project starts?

kevwan commented 2 months ago

https://github.com/zeromicro/go-zero/blob/6181594bc873e41ff8913b5b518e83d6e7e510d5/rest/server.go#L83

Use svr.PrintRoutes().

tuye01 commented 2 months ago

Resolved