7 lines
125 B
Go
7 lines
125 B
Go
package lo
|
|
|
|
// Clonable defines a constraint of types having Clone() T method.
|
|
type Clonable[T any] interface {
|
|
Clone() T
|
|
}
|