tongo/primitives.go

16 lines
250 B
Go
Raw Normal View History

2023-01-24 02:23:31 +03:00
package tongo
import "go.mongodb.org/mongo-driver/bson"
func D(es ...bson.E) bson.D {
d := bson.D{}
for _, e := range es {
d = append(d, e)
}
return d
}
func E(Key string, Value interface{}) bson.E {
return bson.E{Key: Key, Value: Value}
}