1
0
Fork 0
forked from goffee/cup
cup/hooks/example-hook.go

19 lines
410 B
Go
Raw Normal View History

2024-09-12 19:15:38 -04:00
// 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.
2024-09-15 20:19:30 -04:00
package hooks
2024-09-12 19:15:38 -04:00
import (
"fmt"
"git.smarteching.com/goffee/core"
)
2024-09-15 20:19:30 -04:00
// Example hook
var ExampleHook core.Hook = func(c *core.Context) {
fmt.Println("example hook!")
2024-09-12 19:15:38 -04:00
c.Next()
}