2025-01-08
1.背景
在开发过程中,我们经常需要获取goroutine id 和全局上下文。但是go runtime 并没有提供这样的接口。我们可以通过修改go runtime 源码,添加这样的接口。
...
2024-05-11
背景
在衡量测试质量时候,需要考虑核心链路是否被覆盖。避免核心链路出现问题。
需要通过入API 路由找到所有被调用的含漱液。
目前函数调用链数实现方案:
代码静态分析
日志分析
...
2023-12-22
准备环境
python3 (miniconda)
下载代码和模型
# workspace = pwd
git clone https://github.com/THU...
2022-12-12
1 如何确定数据类型
使用 reflect.Kind 或者reflect.Type
1.1 reflect.Kind
go的基础类型, 类型是有限,可以被穷举。
type My stri...
2022-10-27
Mapper
golang 数据深拷贝的类库,支持数据自动映射。 map to struct, struct to map, struct to struct.
Install
go get ...