sqlite的api,便于内部使用
liuxiaolong
2019-06-18 83fa6975edfdae73dc4c7d24a6f38d9687e1111f
fix dbapi.Init
1个文件已修改
4 ■■■ 已修改文件
client.go 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
client.go
@@ -1,5 +1,7 @@
package dbapi
import "strconv"
type Client interface {
    //GET
    DoGetRequest(url string, params map[string]string, headers map[string]string) ([]byte, error)
@@ -22,5 +24,5 @@
//初始化dbserver的地址和端口
func Init(ip string,port int){
    BASIC_URL = "http://"+ ip + ":" + string(port)
    BASIC_URL = "http://"+ ip + ":" + strconv.Itoa(port)
}