新Sir

导航

 

2021年9月18日

摘要: Configurations 配置 基础的配置运行、调试模式配置 点击''+" 选择 go build 点击 Create configuration 当前项目文件夹下 追加 "\main.go", 点击 右下角 Apply, 然后 go build test 上面 红色的 x 就消失了,正常显示绿 阅读全文
posted @ 2021-09-18 15:28 新Sir 阅读(3040) 评论(0) 推荐(0) 编辑
 
摘要: 背景 接口出现异常,发现这个错误 runtime error: invalid memory address or nil pointer dereference 原有: 指针变量为空,此时访问指针变量的成员,就会出现这个问题。 下面一个测试的错误再现demo, 当然我们平常开发的时候,错误不会这么 阅读全文
posted @ 2021-09-18 14:49 新Sir 阅读(7791) 评论(1) 推荐(0) 编辑
 
摘要: 背景: 查询 报错如下: 项目是go 项目,我使用的是gorm Scan error on column index 7, name \"apply_time\": unsupported Scan, storing driver.Value type []uint8 into type *time 阅读全文
posted @ 2021-09-18 11:42 新Sir 阅读(1337) 评论(0) 推荐(0) 编辑