goext/wmo/mongo.go
2023-06-06 21:18:40 +02:00

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
}