convert

package
v1.2.19 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 interface{}, tagName string) (list []interface{}, 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 interface{}) (err error)

func (Row) ConvertByTag

func (r Row) ConvertByTag(out interface{}, tagName string) (err error)

func (Row) Float64

func (r Row) Float64(key string) float64

func (Row) Int

func (r Row) Int(key string) int

func (Row) Int64

func (r Row) Int64(key string) int64

func (Row) String

func (r Row) String(key string) string

func (Row) Uint

func (r Row) Uint(key string) uint

func (Row) Uint64

func (r Row) Uint64(key string) uint64

Jump to

Keyboard shortcuts

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