wrapper

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapHandlerFuncToGin

func WrapHandlerFuncToGin(fn http.HandlerFunc) gin.HandlerFunc

WrapHandlerFuncToGin 将 http.HandlerFunc 包装为 gin.HandlerFunc 直接使用原始处理器,避免额外的函数调用开销

func WrapHandlerToGin

func WrapHandlerToGin(fn http.Handler) gin.HandlerFunc

WrapHandlerToGin 将 http.Handler 包装为 gin.HandlerFunc 直接使用原始处理器,避免额外的函数调用开销

Types

This section is empty.

Jump to

Keyboard shortcuts

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