2
0

Use generics for RangeCodec

This allows DecodeValue to return a more strongly typed value.
This commit is contained in:
Jack Christensen
2022-04-09 10:18:51 -05:00
parent c8025fd79a
commit 976b1e03a9
4 changed files with 34 additions and 69 deletions
+1
View File
@@ -276,6 +276,7 @@ func ParseUntypedBinaryRange(src []byte) (*UntypedBinaryRange, error) {
}
// Range is a generic range type.
type Range[T any] struct {
Lower T
Upper T