Transaction Sample code 1 This part is based on last post XORM - Go ORM: basic guide and make some improvements in sample code. In the last post, the transfer part didn’t use transcation to make operation safe, and now it is: // Create Session object. sess := x.NewSession() defer sess.Close() // Start transcation. if err = sess.Begin(); err != nil { return err } if _, err = sess.