File: constraint.go

package info (click to toggle)
golang-github-code-hex-go-generics-cache 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 201 bytes parent folder | download
1
2
3
4
5
6
7
8
package cache

import "golang.org/x/exp/constraints"

// Number is a constraint that permits any numeric types.
type Number interface {
	constraints.Integer | constraints.Float | constraints.Complex
}