3
cbsa
10d

Can anyone tell me how I can integrate Mongo DB with golang?

I found go-bongo, but it's not well documented.

Comments
  • 0
    here's the official driver my mongo
    mongodb/mongo-go-driver

    I just used github search.

    where you lookong for an ORM instead?
  • 0
    Just tag your objects fields with bson.
    Also - golang has no generics, and is hard typed as well. Have fun!
  • 0
    @jesustricks The driver makes it painful for development, ORM would be better.
  • 0
    @cbsa yeah, it seems there's not a lot of pkgs in that area.

    that is usually my experience with go, little amount of packages, or the packages that do exist have a very specific readme file.
  • 0
    @cbsa I think the problem here is that you are trying to develop with it in a non idiomatic way.

    Go without orm is lovely for me. No magic.

    Although, if u want to do it anyway, go gorm
Add Comment