mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-29 18:46:31 +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) {}
|