Skip to content

This is a nexample on how to use mongo transaction in golang.

Notifications You must be signed in to change notification settings

JackieLeee/MongoDB-Transaction-in-Golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

This is am example how to use mongo transaction in golang. Before we code, we need build mongo replica set.Because the mongo transaction is base the replica set.

How to build mongo replica set?

I think you can find the answer from Google.

After build mongo replica set

we should import mongo-driver for golang

go get -u go.mongodb.org/mongo-driver

About

This is a nexample on how to use mongo transaction in golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published