The use of goroutines and channels in the example of two-phase commit

Through actual examples of the use of goroutines and channels that I have encountered through my work, I will consider their general use.

To reduce the load on CloudSQL, we migrated some huge data to Datastore.
I will show the implementation of two-phase commit in the go language that I did.