goext/wmo/mongo.go

12 lines
181 B
Go
Raw Permalink Normal View History

2023-06-06 21:18:40 +02:00
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
}