util

package
v0.0.0-...-80327fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinReadCloser

func JoinReadCloser(r io.Reader, c io.Closer) io.ReadCloser

JoinReadCloser combines a Reader and Closer to a ReadCloser.

func Transact

func Transact(db *sql.DB, f func(tx *sql.Tx) error) (err error)

Transact runs a function within a transaction, handlng commit and rollback.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL