Thanks for letting me know that "left-pad" thing. I didn't know it before you mentioned it here.
Parsing a URL string and constructing a BSON object are easy if the criteria is like this: A.B="foo" AND C.D=true However, if the query is like this, I'm not sure if it still can be done correctly without careful attention: ((A.B="foo" AND C.D=true) OR E.F="boo" AND G=1234) OR H.I.J IN "abc def xyz" So what I meant was to target such complex situation which is commonly used in searching large data set. Really appreciate if somebody can point out that there is already something available or even some examples in Go. Thanks. On Monday, June 5, 2017 at 5:01:03 PM UTC-7, DV wrote: > > This seems pretty trivial, tbh. You just parse the URL query string and > construct a JSON doc out of it? > > Go's philosophy in general is that it's better to just write the code > yourself sometimes, even multiple times, than to pull in a dependency. > Especially for something like this. > > Do you remember the Node community's "left-pad" fiasco from last year? > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.