Documentation
¶
Overview ¶
Package debug 提供调试相关功能
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name, notExists string) web.HandlerFunc
New 输出调试信息
p 是指路由中的参数名,比如以下示例中,p 的值为 debug:
r.Get("/test{debug}", New("debug", web.ProblemNotFound))
p 所代表的路径包含了前缀的 /。
func RegisterDev ¶
RegisterDev 仅在 [web.comptime.Mode] 为 development 时才注册
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.