diff options
Diffstat (limited to 'tx.go')
-rw-r--r-- | tx.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -73,3 +73,11 @@ func (tx *Tx) Assert(p bool) { tx.Retry() } } + +func (tx *Tx) Return(v interface{}) { + panic(_return{v}) +} + +type _return struct { + value interface{} +} |