The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
func(context.Context, *Tx) error
| 71 | // function as a Committer. If f is a function with the appropriate |
| 72 | // signature, CommitFunc(f) is a Committer that calls f. |
| 73 | CommitFunc func(context.Context, *Tx) error |
| 74 | |
| 75 | // CommitHook defines the "commit middleware". A function that gets a Committer |
| 76 | // and returns a Committer. For example: |