I am looking for a way to shard a collection (https://docs.mongodb.com/manual/reference/method/sh.shardCollection/) using the Go driver (https://github.com/mongodb/mongo-go-driver).
I was somehow expecting a method
collection.Shard(...) but I couldn’t find anything.
I suppose it would work using
db.RunCommand? But is there a more Go idiomatic way?