convert

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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) Exists added in v1.2.28

func (r Row) Exists(key string) bool

func (Row) Float32 added in v1.2.28

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 added in v1.2.28

func (r Row) Int16(key string) int16

func (Row) Int32 added in v1.2.28

func (r Row) Int32(key string) int32

func (Row) Int64

func (r Row) Int64(key string) int64

func (Row) Int8 added in v1.2.28

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 added in v1.2.28

func (r Row) Uint16(key string) uint16

func (Row) Uint32 added in v1.2.28

func (r Row) Uint32(key string) uint32

func (Row) Uint64

func (r Row) Uint64(key string) uint64

func (Row) Uint8 added in v1.2.28

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