add tap
This commit is contained in:
8
utils/tap/tap.go
Normal file
8
utils/tap/tap.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package tap
|
||||||
|
|
||||||
|
func T[T any](v T, ds ...func(T)) T {
|
||||||
|
for _, d := range ds {
|
||||||
|
d(v)
|
||||||
|
}
|
||||||
|
return v
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user