diff options
Diffstat (limited to 'ds/types.go')
| -rw-r--r-- | ds/types.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ds/types.go b/ds/types.go new file mode 100644 index 0000000..3dfe0b3 --- /dev/null +++ b/ds/types.go @@ -0,0 +1,13 @@ +package ds + +import ( + "golang.org/x/exp/constraints" +) + +type Integer interface { + constraints.Integer +} + +type Number interface { + constraints.Integer | constraints.Float +} |
