摘要: http://json2struct.mervine.net/ 阅读全文
posted @ 2022-02-13 18:54 AngDH 阅读(154) 评论(0) 推荐(0) 编辑
摘要: var DB *sql.DB func InitDB(){ path := strings.Join([]string{USERNAME, ":", PASSWORD, "@tcp(",HOST, ":", PORT, ")/", DBNAME, "?charset=utf8"}, "") DB, 阅读全文
posted @ 2022-02-13 18:34 AngDH 阅读(76) 评论(0) 推荐(0) 编辑
摘要: var wg sync.WaitGroup func WaitGroupStart(url string) { start := time.Now() wg.Add(10) for i := 0; i < 10; i++ { go func(i int) { defer wg.Done() Spid 阅读全文
posted @ 2022-02-13 11:30 AngDH 阅读(110) 评论(0) 推荐(0) 编辑