This commit is contained in:
yanghao05
2023-05-24 08:53:48 +08:00
parent 35e8fd6ac5
commit 7d6b29c47d

8
utils/tap/tap.go Normal file
View 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
}