上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 61 下一页
摘要: github https://github.com/golangci/golangci-lint/releases ide setting->tools->go linter .golangci.yml # 运行配置 run: # 要使用的CPU核心数 concurrency: 4 # 分析超时,例 阅读全文
posted @ 2022-07-12 15:19 vx_guanchaoguo0 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 降低GC 频率 main 申请一大块内存 造成 heap 很大的假象 由于虚拟内存的技术的存在只有使用时候才会CPU汇编指令才会交换为物理内存 由于程序存在期间不释放内存,也不使用 gc 判断的时候会被误导,因此不会触发GC 可以使用 debug.SetGCPercent(xxx)/GOGC 调整百 阅读全文
posted @ 2022-07-11 15:06 vx_guanchaoguo0 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 每次用微信截图的时候 选中的截图会变小 开始以为和win10的快捷键冲突 两个屏幕截图这样看起来很麻烦 百度一圈结果不是 ###后来发现 win10 屏幕缩放是150% 微信截图是100% 截图后就变成100% 因此形成视觉差 处理办法 桌面->右键->显示设置->显示->高级缩放设置->100% 阅读全文
posted @ 2022-07-11 14:31 vx_guanchaoguo0 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: 官方代码 一脸蒙圈 location:= time.FixedZone("UTC-6", -6*40*40) location:= time.FixedZone("UTC-7", -7*50*50) 其实官方给的只是示例 并不能直接用 如果你直接用恭喜你,可以跑路了 经常看到 UTC时间、GMT时间 阅读全文
posted @ 2022-07-11 10:48 vx_guanchaoguo0 阅读(79) 评论(0) 推荐(0) 编辑
摘要: roit搜索 https://github.com/go-ego/riot 停止维护了 根据 https://github.com/huichen/wukong ####悟空搜索 https://github.com/huichen/wukong 也不再维护了 gse 词典做分词 阅读全文
posted @ 2022-07-08 14:43 vx_guanchaoguo0 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 一般 使用的struct 的时候喜欢 new 一下 map chan make一下 基础类型 声明直接使用已经默认分配了默认值 只需要一块内存保存 引用类型 声明后只是有了引用地址 但是还要额为分配内存 给引用的变量分配空间 需要两块内存相互关联 引用类型必须分配值也就是初始化, 而不是自动分配默认 阅读全文
posted @ 2022-07-08 11:23 vx_guanchaoguo0 阅读(18) 评论(0) 推荐(0) 编辑
摘要: node 使用grpc npm init 创建项目 demo.proto syntax = "proto3"; package hello; service Greeter { rpc SayHello (HelloRequest) returns (HelloReply) {} } message 阅读全文
posted @ 2022-07-07 17:59 vx_guanchaoguo0 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 实现控制机器到多个被控机器的免密 ssh scopy xsync 首先生成公钥和私钥 ssh-keygen 将控制机器公钥拷贝到被控主机的上 ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host `` 阅读全文
posted @ 2022-07-07 14:16 vx_guanchaoguo0 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 一个窗口运行 多个服务 运行时候选择 cnfiguration -> run kind -> Directoty 一个窗口显示多个项目视图 open-> [this window / new window / attach] -> attch 阅读全文
posted @ 2022-07-07 11:09 vx_guanchaoguo0 阅读(664) 评论(0) 推荐(0) 编辑
摘要: 有个需求需要将用户分数更新为0分 然鹅grom 是0值不更新 找了一大圈说是用map 代替struct update 但是依然失败 方式1 type Temp struct{ Int32 sql.NullInt32 Bool bool } sql.NullInt32{Int32: 0, Valid: 阅读全文
posted @ 2022-07-06 20:02 vx_guanchaoguo0 阅读(360) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 61 下一页