File: constraints.go

package info (click to toggle)
golang-github-samber-lo 1.38.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 296 kB
  • sloc: makefile: 35
file content (6 lines) | stat: -rw-r--r-- 125 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
package lo

// Clonable defines a constraint of types having Clone() T method.
type Clonable[T any] interface {
	Clone() T
}