@@ -62,7 +62,7 @@ type rawValue struct {
6262 Value []byte // byte representation of value, BigEndian encoding.
6363}
6464
65- func (r rawValue ) encodeScalar (w io.Writer , v interface {} ) error {
65+ func (r rawValue ) encodeScalar (w io.Writer , v any ) error {
6666 return binaryWriteFields (w , binary .BigEndian ,
6767 r .Type ,
6868 v ,
@@ -158,7 +158,7 @@ func decodeStringValue(r io.Reader) (string, error) {
158158
159159// Value represents the abstract header value.
160160type Value interface {
161- Get () interface {}
161+ Get () any
162162 String () string
163163 valueType () valueType
164164 encode (io.Writer ) error
@@ -169,7 +169,7 @@ type Value interface {
169169type BoolValue bool
170170
171171// Get returns the underlying type
172- func (v BoolValue ) Get () interface {} {
172+ func (v BoolValue ) Get () any {
173173 return bool (v )
174174}
175175
@@ -196,7 +196,7 @@ func (v BoolValue) encode(w io.Writer) error {
196196type Int8Value int8
197197
198198// Get returns the underlying value.
199- func (v Int8Value ) Get () interface {} {
199+ func (v Int8Value ) Get () any {
200200 return int8 (v )
201201}
202202
@@ -234,7 +234,7 @@ func (v *Int8Value) decode(r io.Reader) error {
234234type Int16Value int16
235235
236236// Get returns the underlying value.
237- func (v Int16Value ) Get () interface {} {
237+ func (v Int16Value ) Get () any {
238238 return int16 (v )
239239}
240240
@@ -271,7 +271,7 @@ func (v *Int16Value) decode(r io.Reader) error {
271271type Int32Value int32
272272
273273// Get returns the underlying value.
274- func (v Int32Value ) Get () interface {} {
274+ func (v Int32Value ) Get () any {
275275 return int32 (v )
276276}
277277
@@ -308,7 +308,7 @@ func (v *Int32Value) decode(r io.Reader) error {
308308type Int64Value int64
309309
310310// Get returns the underlying value.
311- func (v Int64Value ) Get () interface {} {
311+ func (v Int64Value ) Get () any {
312312 return int64 (v )
313313}
314314
@@ -345,7 +345,7 @@ func (v *Int64Value) decode(r io.Reader) error {
345345type BytesValue []byte
346346
347347// Get returns the underlying value.
348- func (v BytesValue ) Get () interface {} {
348+ func (v BytesValue ) Get () any {
349349 return []byte (v )
350350}
351351
@@ -383,7 +383,7 @@ func (v *BytesValue) decode(r io.Reader) error {
383383type StringValue string
384384
385385// Get returns the underlying value.
386- func (v StringValue ) Get () interface {} {
386+ func (v StringValue ) Get () any {
387387 return string (v )
388388}
389389
@@ -421,7 +421,7 @@ func (v *StringValue) decode(r io.Reader) error {
421421type TimestampValue time.Time
422422
423423// Get returns the underlying value.
424- func (v TimestampValue ) Get () interface {} {
424+ func (v TimestampValue ) Get () any {
425425 return time .Time (v )
426426}
427427
@@ -478,7 +478,7 @@ func timeFromEpochMilli(t int64) time.Time {
478478type UUIDValue [16 ]byte
479479
480480// Get returns the underlying value.
481- func (v UUIDValue ) Get () interface {} {
481+ func (v UUIDValue ) Get () any {
482482 return v [:]
483483}
484484
0 commit comments