convert

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SqlRows2StructList

func SqlRows2StructList(rows *sql.Rows, out any, tagName string) (list []any, err error)

Types

type Row

type Row map[string]string

func SqlRows2RowList

func SqlRows2RowList(rows *sql.Rows) (list []Row, err error)

func (Row) Bool

func (r Row) Bool(key string) bool

func (Row) Convert

func (r Row) Convert(out any) (err error)

func (Row) ConvertByTag

func (r Row) ConvertByTag(out any, tagName string) (err error)

func (Row) Exists

func (r Row) Exists(key string) bool

func (Row) Float32

func (r Row) Float32(key string) float32

func (Row) Float64

func (r Row) Float64(key string) float64

func (Row) Int

func (r Row) Int(key string) int

func (Row) Int16

func (r Row) Int16(key string) int16

func (Row) Int32

func (r Row) Int32(key string) int32

func (Row) Int64

func (r Row) Int64(key string) int64

func (Row) Int8

func (r Row) Int8(key string) int8

func (Row) String

func (r Row) String(key string) string

func (Row) Uint

func (r Row) Uint(key string) uint

func (Row) Uint16

func (r Row) Uint16(key string) uint16

func (Row) Uint32

func (r Row) Uint32(key string) uint32

func (Row) Uint64

func (r Row) Uint64(key string) uint64

func (Row) Uint8

func (r Row) Uint8(key string) uint8

Jump to

Keyboard shortcuts

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