Skip to content
View xiazemin's full-sized avatar
🎯
Focusing
🎯
Focusing

Organizations

@doocs

Block or report xiazemin

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
xiazemin/README.md

我的技术博客 👋

https://xiazemin.github.io/MyBlog/index.html

最近的轮子项目

vscode 插件

https://github.com/xiazemin/golangCodeHelper 支持右键从json文件生成golang结构体,从curl生成golang http请求代码

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 自动生成带gomock的代码

上传代码,生成导出函数的树形逻辑分支,支持动态编辑

https://github.com/xiazemin/jstree-go 逻辑分支可视化(https://github.com/xiazemin/jstree-go/blob/main/static/1677917465883.jpg)

支持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

可视化语法树

nacos sidecar服务自动注册

https://github.com/xiazemin/registrator-nacos

nacos sidecar服务自动注册

docker run -d \
    --name=registrator-nacos \
    --net=host \
    --volume=/var/run/docker.sock:/tmp/docker.sock \
    xiazemin/registrator-nacos:v0.0.1 \
      nacos://127.0.0.1
docker run  -p5678:5678 yourservice:yourport

json转golang结构体

https://github.com/xiazemin/jsonToAll

proto 生成xmind文件

https://github.com/xiazemin/proto2xmind

安装: go install github.com/xiazemin/proto2xmind 使用: proto2xmind gen -s ./example/sub.proto -s ./example/request.proto -d ./example/example.xmind

example.xmind

json格式生成xmind文件

给定父子结构关系json,生成对应的xmind文件 https://github.com/xiazemin/xmind-go

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

我的公众号

关注我

Pinned Loading

  1. MyBlogSrc MyBlogSrc Public

    个人博客

    HTML 3 1

  2. proto2xmind proto2xmind Public

    Go 6