Helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoTypeToSQLTypeString

func GoTypeToSQLTypeString(p reflect.Type) string

转化Go语言类型至sql相应类型字符串

func JsonizeWriter

func JsonizeWriter(respw http.ResponseWriter, rst []reflect.Value)

JsonizeWriter 将结果集rst json序列化,并响应请求

func SQLTypeStringToGoType

func SQLTypeStringToGoType(p string) reflect.Type

SQLTypeStringToGoType 转换SQL类型字符串到go语言类型

func SetElemValues

func SetElemValues(elem *reflect.Value, values []sql.RawBytes)

SetElemValues辅助设置各种类型的值

func Unzip added in v0.3.0

func Unzip(zipFile string, destDir string) error

Unzip 解压文件

func ValueToString

func ValueToString(elem reflect.Value) string

ValueToString 转化Value为string

Types

This section is empty.

Jump to

Keyboard shortcuts

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