diff options
-rw-r--r-- | tx.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) +} |