12 2022 档案

摘要:项目地址 这个项目是很久以前的,当时go能力有限,写的不尽人意。刚好最近有加密文件的需求,所以就完善了相关逻辑。 之前的方案还依赖 Seek(offset int64, whence int) (int64, error) ,看了go很多源码,都说Seek不可靠。所以目前改为纯Reader和Writ 阅读全文
posted @ 2022-12-20 17:16 janbar 阅读(433) 评论(0) 推荐(1)
摘要:忽略单个目录 git config --global --add safe.directory D:/www/your-project git config --global --add safe.directory D:/www/other-project 忽略全部目录 git config -- 阅读全文
posted @ 2022-12-14 10:28 janbar 阅读(335) 评论(0) 推荐(0)
摘要:官方资料 官方解释: https://pkg.go.dev/cmd/go#hdr-Build_constraints ,go help buildconstraint 也能看到描述 根据官方描述,go1.16开始建议使用go:build方式,与+build相比更容易被人阅读。 有关go:build注 阅读全文
posted @ 2022-12-12 17:04 janbar 阅读(462) 评论(0) 推荐(1)
摘要:说明 参考教程:https://baijiahao.baidu.com/s?id=1662960328855347503 特别注意,最好用最新的PE工具,我用的 微PE。因为我弄过一次全盘安装,导致整个硬盘在PE工具中的diskgenius无法识别,最终为U盘安装最新版PE工具后可以识别。 硬盘分区 阅读全文
posted @ 2022-12-07 12:44 janbar 阅读(1267) 评论(0) 推荐(0)
摘要:服务端 package main import ( "errors" "fmt" "log" "net" "net/rpc" "net/rpc/jsonrpc" "os" ) // 算数运算结构体 type Arith struct { } // 算数运算请求结构体 type ArithReques 阅读全文
posted @ 2022-12-01 19:50 janbar 阅读(117) 评论(0) 推荐(0)