mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-23 18:52:11 +00: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) {}
|