![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Go
memory丶of
阳光,爱说话,喜欢玩,喜欢研究新的东西,喜欢分享一些有趣的知识,希望我们一起进步,为时代的进步做出力所能及的小事情。
展开
-
好用的Go对于Http连接池请求三方工具 POST GET
今天无聊就想着封装一个好用的go语言Http连接池请求三方工具 话不多说直接上代码: package main import ( "bytes" "encoding/json" "io/ioutil" "net" "net/http" "time" ) const ( MaxIdleConns int = 10000 MaxIdleConnsPerHost int = 2000 IdleConnTimeout int = 90 ConnTimeout time.Duration =原创 2020-08-13 17:50:10 · 668 阅读 · 0 评论 -
常用的go工具map、struct、jsonstr相互转化
大家好,今天没事研究了一下Go常用的map、struct、jsonstr相互转化 话不多说直接上代码 package main import ( "encoding/json" "fmt" "reflect" ) /** jsonstring --> map */ func JsonStr2Map(jsonStr string) (event map[string]interface{},err error){ if err = json.Unmarshal([]byte(jsonSt原创 2020-08-13 17:45:21 · 708 阅读 · 0 评论