How to write the following code in go using gorethinkdb
r.circle([-117.220406,32.719464], 10, {:unit => 'mi'})
How to write the following code in go using gorethinkdb
r.circle([-117.220406,32.719464], 10, {:unit => 'mi'})
In this particular case, you can use r.Circle as follows:
import r "gopkg.in/dancannon/gorethink.v2"
...
r.Circle(r.Point(-117.220406, 32.719464), r.Expr(10), r.CircleOpts{Unit: "mi"})
You can check out more examples directly from the documentation