背景:开发中,免不了要对代码进行debug调试,go也不例外,使用go-zero框架时,该怎么对项目进行调试呢?
以user模块为例,找到service/user/api/user.go,这是user模块的入口,打开user.go可以看到main函数。