12 lines
181 B
Go
12 lines
181 B
Go
package wmo
|
|
|
|
import "go.mongodb.org/mongo-driver/mongo"
|
|
|
|
func W[TData any](collection *mongo.Collection) *Coll[TData] {
|
|
c := Coll[TData]{coll: collection}
|
|
|
|
c.init()
|
|
|
|
return &c
|
|
}
|