mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 20:52:26 -05:00
7 lines
193 B
Go
7 lines
193 B
Go
|
|
package cache
|
||
|
|
|
||
|
|
// Hook defines a function hook that can be supplied as a callback.
|
||
|
|
type Hook[Key comparable, Value any] func(key Key, value Value)
|
||
|
|
|
||
|
|
func emptyHook[K comparable, V any](K, V) {}
|