util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BusSyncSql

func BusSyncSql(code, vpn, port, sql string) string

func DbInit

func DbInit(dbInfo model.DBInfo)

func GetIniInt

func GetIniInt(sectionName string, key string) int

func GetIniVal

func GetIniVal(sectionName string, key string) string

func GetSection

func GetSection(sectionName string) *ini.Section

func HandleError

func HandleError(err error, message string)

func HandleResp

func HandleResp(resp *http.Response) string

func HttpGet

func HttpGet(uu string, params url.Values) string

func HttpPost

func HttpPost(uu string, data string) string

func Pause

func Pause()

func QueryAll

func QueryAll(sqlStr string, args ...interface{}) ([]map[string]string, error)

func QueryOne

func QueryOne(sqlStr string, args ...interface{}) (map[string]string, error)

func ReadIniInit

func ReadIniInit(fileName string)

func UserGet

func UserGet(appid string, appsecret string)

func WriteByteArray

func WriteByteArray(filename string, tmp string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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