skip

package
v7.0.0-...-8ac4b21 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package skip 是否根据条件跳过路由的执行

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cond func(*web.Context) bool, problemID string) web.MiddlewareFunc

New 只有在 cond 为 true 时才执行路由

problemID 表示在条件为 false 时返回的错误码。

Types

This section is empty.

Jump to

Keyboard shortcuts

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