debug

package
v7.0.0-...-1a455bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 0

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 Register

func Register(r *web.Router, path string)

Register 向 r 注册所有以 path 开头的路径作为调试

func RegisterDev

func RegisterDev(r *web.Router, path string)

RegisterDev 仅在 [web.comptime.Mode] 为 development 时才注册

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL