mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 20:22:26 -05:00
update dependencies (#296)
This commit is contained in:
parent
2aaec82732
commit
829a934d23
124 changed files with 2453 additions and 1588 deletions
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue