mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
update dependencies (#296)
This commit is contained in:
13
vendor/codeberg.org/gruf/go-logger/hook.go
generated
vendored
Normal file
13
vendor/codeberg.org/gruf/go-logger/hook.go
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
package logger
|
||||
|
||||
// Hook defines a log Entry modifier
|
||||
type Hook interface {
|
||||
Do(*Entry)
|
||||
}
|
||||
|
||||
// HookFunc is a simple adapter to allow functions to satisfy the Hook interface
|
||||
type HookFunc func(*Entry)
|
||||
|
||||
func (hook HookFunc) Do(entry *Entry) {
|
||||
hook(entry)
|
||||
}
|
Reference in New Issue
Block a user