simplify

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInRewriteRules added in v0.4.3

func BuildInRewriteRules() []string

BuildInRewriteRules 获取内置的简化规则

func Format

func Format(req *common.Request)

Format call simplify

rewrite.go 和 simplify.go 来自于 go1.19

func Rewrite added in v0.4.3

func Rewrite(req *common.Request, rule string) (f *ast.File, e error)

Rewrite 简化代码

func RewriteWithExpr added in v0.4.6

func RewriteWithExpr(req *common.Request, pattern, replace ast.Expr)

RewriteWithExpr 使用指定的规则替换

func Rewrites added in v0.4.3

func Rewrites(req *common.Request, rules []string) error

Rewrites rewrite with many rules

Types

This section is empty.

Jump to

Keyboard shortcuts

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