随笔分类 -  golang

摘要:query := fmt.Sprintf("SELECT .... infos = make([]*struct, 0, 10) err = s.db.GetContext(ctx, &infos, query) 返回错误: scannable dest type slice with >1 col 阅读全文
posted @ 2020-06-28 20:45 bobojiang2016 阅读(2531) 评论(0) 推荐(0)
摘要:golang json字符串合并操作,字段重复的覆盖,新增的添加 阅读全文
posted @ 2020-04-02 15:57 bobojiang2016 阅读(3230) 评论(0) 推荐(0)
摘要:goland 提示: Cannot find declaration to go to 阅读全文
posted @ 2020-04-02 15:15 bobojiang2016 阅读(2368) 评论(0) 推荐(0)
摘要:_, err := c.Find(bson.M{"index": index}).Apply(mgo.Change{ Upsert: true, ReturnNew: false, Update: bson.M{"create_time": time.Now(), "update_time": ti 阅读全文
posted @ 2020-04-02 14:17 bobojiang2016 阅读(1857) 评论(0) 推荐(0)