摘要: 模型定义 | GORM - The fantastic ORM library for Golang, aims to be developer friendly. 模型定义 GORM 通过将 Go 结构体(Go structs) 映射到数据库表来简化数据库交互。 了解如何在GORM中定义模型,是充 阅读全文
posted @ 2024-06-13 14:30 hbg-rohens 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 摘自知乎:如有侵权,会删除。 作者:Go语言入门到精通链接:https://www.zhihu.com/question/63974075/answer/2481047615来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 Web 端优秀开源框架 Macaron - 一 阅读全文
posted @ 2024-06-13 11:27 hbg-rohens 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-03-24 14:27 hbg-rohens 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-03-24 14:14 hbg-rohens 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-03-24 13:51 hbg-rohens 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-03-24 13:47 hbg-rohens 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 使用mysql语句执行时可以执行成功,但是使用go语言编程保存到struct中时出现问题。 代码如下: sflog.Debug("QueryByTaskId ", id) type Data struct { TaskId int64 `json:"taskId"` VehicleName stri 阅读全文
posted @ 2024-03-08 18:32 hbg-rohens 阅读(152) 评论(0) 推荐(0) 编辑
摘要: virutal box安装了 ubuntu 16.04, 执行命令 sudo apt update 时报错: Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) 百度了很多答案, 阅读全文
posted @ 2023-06-13 10:55 hbg-rohens 阅读(677) 评论(1) 推荐(1) 编辑
摘要: mysql中时间字段datetime怎么判断为空和不为空一般为空都用nulla56爆大奖在线娱乐,a56爆大奖在线娱乐一句sql语句就可以。select * from 表名 where 日期字段 is null;这里要注意null的用法,不可以用=null这样的形式a56爆大奖在线娱乐。相反,要取出不为空的数据,就是is trueselect * 阅读全文
posted @ 2023-03-20 11:24 hbg-rohens 阅读(79) 评论(0) 推荐(0) 编辑
摘要: when use libucrl (c++) to code in ubuntu 16.04, then docker it to the centos 8, report this error: [ERROR] 2023-03-13_13:33:56 line 715 curl_oper.cpp: 阅读全文
posted @ 2023-03-14 09:49 hbg-rohens 阅读(221) 评论(0) 推荐(0) 编辑