Skip to content

Commit a20785b

Browse files
committed
Update.X
1 parent b691cbb commit a20785b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

builder_update.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ func (ub *UpdateBuilder) Set(k string, v interface{}) *UpdateBuilder {
8181
return ub
8282
}
8383

84-
func (ub *UpdateBuilder) X(s string) *UpdateBuilder {
84+
func (ub *UpdateBuilder) X(s string, vs ...interface{}) *UpdateBuilder {
8585
ub.bbs = append(ub.bbs, Bb{
86-
op: "SET",
87-
key: s,
86+
op: "SET",
87+
key: s,
88+
value: vs,
8889
})
8990
return ub
9091
}

0 commit comments

Comments
 (0)