通过修改GO 源代码,支持获取goroutine id 和 协程调用链全局上下文

1.背景 在开发过程中,我们经常需要获取goroutine id 和全局上下文。但是go runtime 并没有提供这样的接口。我们可以通过修改go runtime 源码,添加这样的接口。 ...

通过LSP分析代码函数调用链路

背景 在衡量测试质量时候,需要考虑核心链路是否被覆盖。避免核心链路出现问题。 需要通过入API 路由找到所有被调用的含漱液。 目前函数调用链数实现方案: 代码静态分析 日志分析 ...

ChatGLM2-6B install

准备环境 python3 (miniconda) 下载代码和模型 # workspace = pwd git clone https://github.com/THU...

reflect 使用总结

1 如何确定数据类型 使用 reflect.Kind 或者reflect.Type 1.1 reflect.Kind go的基础类型, 类型是有限,可以被穷举。 type My stri...

golang mapper 数据深拷贝

Mapper golang 数据深拷贝的类库,支持数据自动映射。 map to struct, struct to map, struct to struct. Install go get ...
1 2 3 4 5 6 7 8 9 10 11 12 (共58篇)