aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tx.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tx.go b/tx.go
index 14003f8..e90eb57 100644
--- a/tx.go
+++ b/tx.go
@@ -1,6 +1,7 @@
package stm
import (
+ "fmt"
"sort"
"sync"
"unsafe"
@@ -141,3 +142,7 @@ func (tx *Tx) unlock() {
l.Unlock()
}
}
+
+func (tx *Tx) String() string {
+ return fmt.Sprintf("%[1]T %[1]p", tx)
+}