pkg

package
v0.0.0-...-621c15c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookGenerator

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

HookGenerator is a generator for hooks.

func NewHookGenerator

func NewHookGenerator(hookName, urlPattern, savePath string, priority int64) *HookGenerator

NewHookGenerator returns a new HookGenerator.

func (*HookGenerator) Flush

func (g *HookGenerator) Flush()

Flush write the generated code to file.

func (*HookGenerator) Format

func (g *HookGenerator) Format() *HookGenerator

Format format the generated code.

func (*HookGenerator) Generate

func (g *HookGenerator) Generate() *HookGenerator

Generate init the hook.

Jump to

Keyboard shortcuts

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