util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: GPL-3.0 Imports: 22 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 ExecSql added in v1.0.3

func ExecSql(sqlStr string, args ...interface{})

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, flag bool)

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

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

func OracelQueryOne added in v1.0.3

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

func OracleInit added in v1.0.3

func OracleInit(dbInfo model.DBInfo)

func Pause

func Pause()

func PrepareSql added in v1.0.3

func PrepareSql(sqlString string)

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

func ReadLineFile(fileName string) list.List

func ReadSqlExec added in v1.0.3

func ReadSqlExec()

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