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.
Click to show internal directories.
Click to hide internal directories.