7 lines
93 B
Go
7 lines
93 B
Go
package defaults
|
|
|
|
func Empty[T comparable](val T) bool {
|
|
var empty T
|
|
return val == empty
|
|
}
|