forked from goffee/cup
migration
This commit is contained in:
parent
35d26e5868
commit
a756cd418d
6 changed files with 14 additions and 32 deletions
18
hooks/example-hook.go
Normal file
18
hooks/example-hook.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2023 Harran Ali <harran.m@gmail.com>. All rights reserved.
|
||||
// Copyright (c) 2024 Zeni Kim <zenik@smarteching.com>
|
||||
// Use of this source code is governed by MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package hooks
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.smarteching.com/goffee/core"
|
||||
)
|
||||
|
||||
// Example hook
|
||||
var ExampleHook core.Hook = func(c *core.Context) {
|
||||
fmt.Println("example hook!")
|
||||
c.Next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue