core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoReplace

type AutoReplace struct {
	// contains filtered or unexported fields
}

func NewDist

func NewDist(path string) *AutoReplace

NewDist 初始化规则表结构

func (*AutoReplace) AddRules

func (a *AutoReplace) AddRules(r ...route.Router)

AddRules 增加路由获取接口

func (*AutoReplace) CustomRuleFunc

func (a *AutoReplace) CustomRuleFunc(f func(url string) (resource string))

CustomRuleFunc 添加自定义替换函数 首先采用自定义替换函数。 如果自定义函数返回空字符串, 然后将采用规则表(如果定义了规则表)

func (*AutoReplace) Load added in v1.1.0

func (a *AutoReplace) Load(filer file.Filer) gin.HandlerFunc

Load 默认index.html静态文件

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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