Use generics for RangeCodec
This allows DecodeValue to return a more strongly typed value.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user