2727)
2828
2929// MessageConversion convert values of type schema.Message.
30- func MessageConversion (vals []interface {} ) []schema.Message {
30+ func MessageConversion (vals []any ) []schema.Message {
3131 msgs := make ([]schema.Message , len (vals ))
3232 for i , v := range vals {
3333 msgs [i ] = v .(schema.Message )
6969func NewSqlDriverMessage (id uint64 , row []driver.Value ) * SqlDriverMessage {
7070 return & SqlDriverMessage {IdVal : id , Vals : row }
7171}
72- func (m * SqlDriverMessage ) Id () uint64 { return m .IdVal }
73- func (m * SqlDriverMessage ) Body () interface {} { return m .Vals }
72+ func (m * SqlDriverMessage ) Id () uint64 { return m .IdVal }
73+ func (m * SqlDriverMessage ) Body () any { return m .Vals }
7474func (m * SqlDriverMessage ) ToMsgMap (colidx map [string ]int ) * SqlDriverMessageMap {
7575 return NewSqlDriverMessageMap (m .IdVal , m .Vals , colidx )
7676}
@@ -111,7 +111,7 @@ func (m *SqlDriverMessageMap) SetKeyHashed(key string) {
111111 hasher64 .Write ([]byte (key ))
112112 m .IdVal = hasher64 .Sum64 ()
113113}
114- func (m * SqlDriverMessageMap ) Body () interface {} { return m }
114+ func (m * SqlDriverMessageMap ) Body () any { return m }
115115func (m * SqlDriverMessageMap ) Values () []driver.Value { return m .Vals }
116116func (m * SqlDriverMessageMap ) SetRow (row []driver.Value ) { m .Vals = row }
117117func (m * SqlDriverMessageMap ) Ts () time.Time { return time.Time {} }
@@ -150,21 +150,21 @@ func NewContextSimple() *ContextSimple {
150150func NewContextSimpleData (data map [string ]value.Value ) * ContextSimple {
151151 return & ContextSimple {Data : data , ts : time .Now (), cursor : 0 }
152152}
153- func NewContextSimpleNative (data map [string ]interface {} ) * ContextSimple {
153+ func NewContextSimpleNative (data map [string ]any ) * ContextSimple {
154154 vals := make (map [string ]value.Value )
155155 for k , v := range data {
156156 vals [k ] = value .NewValue (v )
157157 }
158158 return & ContextSimple {Data : vals , ts : time .Now (), cursor : 0 , namespacing : true }
159159}
160- func NewContextMap (data map [string ]interface {} , namespacing bool ) * ContextSimple {
160+ func NewContextMap (data map [string ]any , namespacing bool ) * ContextSimple {
161161 vals := make (map [string ]value.Value )
162162 for k , v := range data {
163163 vals [k ] = value .NewValue (v )
164164 }
165165 return & ContextSimple {Data : vals , ts : time .Now (), cursor : 0 , namespacing : namespacing }
166166}
167- func NewContextMapTs (data map [string ]interface {} , namespacing bool , ts time.Time ) * ContextSimple {
167+ func NewContextMapTs (data map [string ]any , namespacing bool , ts time.Time ) * ContextSimple {
168168 vals := make (map [string ]value.Value )
169169 for k , v := range data {
170170 vals [k ] = value .NewValue (v )
@@ -178,7 +178,7 @@ func NewContextSimpleTs(data map[string]value.Value, ts time.Time) *ContextSimpl
178178func (m * ContextSimple ) SupportNamespacing () { m .namespacing = true }
179179func (m * ContextSimple ) All () map [string ]value.Value { return m .Data }
180180func (m * ContextSimple ) Row () map [string ]value.Value { return m .Data }
181- func (m * ContextSimple ) Body () interface {} { return m }
181+ func (m * ContextSimple ) Body () any { return m }
182182func (m * ContextSimple ) Id () uint64 { return m .keyval }
183183func (m * ContextSimple ) Ts () time.Time { return m .ts }
184184func (m ContextSimple ) Get (key string ) (value.Value , bool ) {
0 commit comments