👋
我的技术博客 https://xiazemin.github.io/MyBlog/index.html
最近的轮子项目
golang:
自动生成带gomock的table driving test 代码工具
源码:https://github.com/xiazemin/autotest 实例:https://github.com/xiazemin/tabel_drving_test_learn 安装:go get -u github.com/xiazemin/autotest/gotests
支持in 和values 语法的 sqlc
sqlc that support in syntax
-- name: GetAuthorsInCompany :many
SELECT * FROM authors where company_id in ( select id from company where id in (?) and name in (?) );
支持不定长values语法
/* name: BatchCreateAuthor :execresult */
INSERT INTO authors (
id,name,bio,company_id
) VALUES (
?,?, ?,1
),(
?,?, ?,1
);
源码:https://github.com/xiazemin/sqlc 实例:https://github.com/xiazemin/sqlc_study 安装:go get -u github.com/xiazemin/sqlc
可视化golang语法树
https://github.com/xiazemin/ast_graph
json转golang结构体
https://github.com/xiazemin/jsonToAll
mysql压测工具: https://github.com/xiazemin/mysqlslap-go
php扩展:
排查超时函数
https://github.com/xiazemin/slowLog
实现扩展类
https://github.com/xiazemin/php_ext_class
php代码工具
查找import指定目录以外的包
php项目改造的时候,快速查找非指定目录内部的namespace,快速排错 https://github.com/xiazemin/php_imports
可视化php调用链路
https://github.com/xiazemin/PhpParserEngine
nginx模块开发
https://github.com/xiazemin/nginx_mod