func (m ContextUrlValues) Put(col expr.SchemaInfo, rctx expr.ContextReader, v value.Value) error { key := col.Key() switch typedValue := v.(type) { case value.StringValue: m.Data.Set(key, typedValue.ToString()) case value.NumberValue: m.Data.Set(key, typedValue.ToString()) } return nil }
func (m *ContextSimple) Put(col expr.SchemaInfo, rctx expr.ContextReader, v value.Value) error { //u.Infof("put context: %v %T:%v", col.Key(), v, v) m.Data[col.Key()] = v return nil }