utils

package
v0.0.0-...-af7dc04 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewIterator

func NewIterator[T interface{}](rows *sql.Rows, scan func(*sql.Rows) (T, error)) (*Iterator[T], error)

func (*Iterator[T]) Close

func (i *Iterator[T]) Close()

func (*Iterator[T]) ForEach

func (i *Iterator[T]) ForEach(fn func(T) error) error

func (*Iterator[T]) Next

func (i *Iterator[T]) Next() (T, error)

Jump to

Keyboard shortcuts

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