- 博客(8)
- 资源 (4)
- 收藏
- 关注
原创 exec: "gcc": executable file not found in %PATH%
这几天go编译报错 解决方案: 下载个这个tdm-gcc-5.1.0-3.exe 可能会安装比较慢, 安装完成后配置系统变量和用户变量 cmd打开,执行gcc -v 即可看是否安装成功. ...
2019-09-03 10:40:04
359
原创 BadValue $in needs an array
$query['t'] = array('$in' => $tw) mongodb 查询用 $in 时 ,如果参数不是数组就汇报此错误,因此需要将$tw转化为数组, 有时候即使$tw时数组也会报此错误,原因时$tw索引不连续, 比如: $tw=array(0=>'dsds',2=>'12312312') 此时即使$tw即使是数组也会报错Can't can...
2019-08-30 14:44:42
1401
原创 cp 覆盖命令
直接 cp actions20190829.class.php actions.class.php 时总是弹出是否overwrite的 提示 要想不弹出 提示 需执行 如下命令 \cp -rf actions20190829.class.php actions.class.php 完美解决 ...
2019-08-29 11:03:34
235
原创 go iota常量生成器
const ( a = iota // 0 b // 1 c // 2 d = 0 // 0, 被打断后,后续值不变,直到用iota显示恢复 e // 0 f // 0 g = iota // 6,显示恢复,i...
2019-08-24 17:50:44
221
转载 go指针类型
go 指针类型 var a = 200 var b *int //指针类型 b = &a // 取a的地址 c := *b //取地址里的值 https://www.cnblogs.com/ctztake/p/10328194.html
2019-08-24 16:43:08
133
原创 go随笔
判断go数据类型方法 var a = 10 fmt.printf("%T\n",a) fmt.println((reflect.TypeOf(a)) //数值交换 var ( a =100 b =200 ) a,b = b,a //数值交换,真的是好神奇啊 ...
2019-08-23 16:36:12
108
原创 mongodb导出时加query
--limit=100 --csv -f title,director--query '{"model":{"$in":["teleplay","film","television"]}}' 目前不清楚是否和mongo版本有关系,之前找过几个例子导出时有问题
2019-08-22 15:07:48
329
mongodb linux 64位 3.0
2016-08-31
mongodb linux 32位 3.0
2016-08-31
mongodb linux 64位
2016-08-31
mongodb linux 32位
2016-08-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人