summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/samber/lo/constraints.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/samber/lo/constraints.go')
-rw-r--r--vendor/github.com/samber/lo/constraints.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/samber/lo/constraints.go b/vendor/github.com/samber/lo/constraints.go
new file mode 100644
index 000000000..c1f352968
--- /dev/null
+++ b/vendor/github.com/samber/lo/constraints.go
@@ -0,0 +1,6 @@
+package lo
+
+// Clonable defines a constraint of types having Clone() T method.
+type Clonable[T any] interface {
+ Clone() T
+}