Help us shape the future of Go! Take the 2026 Go Developer Survey

scanner

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(ctx context.Context, rows *sql.Rows, v any) (err error)

Types

type ScanIter

type ScanIter interface {
	// New a ptr value for scanning
	New() any
	// Next for receive scanned value
	Next(v any) error
}

func ScanIterFor

func ScanIterFor(v any) (ScanIter, error)

type ScanIterT

type ScanIterT[T any] interface {
	New() T
	Next(T) error
}

type SingleScanIter

type SingleScanIter struct {
	// contains filtered or unexported fields
}

func (*SingleScanIter) MustHasRecord

func (s *SingleScanIter) MustHasRecord() bool

func (*SingleScanIter) New

func (s *SingleScanIter) New() any

func (*SingleScanIter) Next

func (s *SingleScanIter) Next(v any) error

type SliceScanIter

type SliceScanIter struct {
	// contains filtered or unexported fields
}

func (*SliceScanIter) New

func (s *SliceScanIter) New() any

func (*SliceScanIter) Next

func (s *SliceScanIter) Next(v any) error

type WithColumnReceivers

type WithColumnReceivers interface {
	ColumnReceivers() map[string]any
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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