Golang Custom Server Selector


I’m reading MongoDB driver’s server selection algorithm and in step 4 it states the “application-provided server selector”

So I’m thinking Golang driver should provide a way to customize server selector as spec says.
The closest method I found is to use “deployment” in here. however, it already declares “deprecated” and “internal use”.

So I am wondering if anyone know how to custom server select function just like pymongo has?