![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GO
文章平均质量分 65
强哥83
啦啦啦
展开
-
RabbitMQ 安装与使用
RabbitMQ 消息队列[10分钟入门](https://blog.csdn.net/php_lzr/article/details/99635346)#Windwos下安装- [官方安装文档](https://www.rabbitmq.com/install-windows-manual.html)- [下载 erlang win64_v22.3](https://www.erlang.org/downloads)- [下载 RabbitMQ v3.8.3](https://github.原创 2022-02-22 12:43:07 · 1188 阅读 · 0 评论 -
redis 安装
WINDOWSGitHub - microsoftarchive/redis: Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes修改配置C:\Program Files\Redis\redis.wi原创 2022-02-19 16:03:04 · 320 阅读 · 0 评论 -
grpc + go + php
GO GRPC 安装安装 protoc下载 https://github.com/protocolbuffers/protobuf/releases/latest$cd %GOPATH%将解析的后的 protoc.exe 文件放入 %GOPATH%/bin$protoc --version安装protoc-gen-go$go get -u github.com/golang/protobuf/protoc-gen-go或者手动安装下载源码,解压到 %GOPATH%/s...原创 2022-02-18 19:04:29 · 290 阅读 · 0 评论 -
ab 与 abs 测试详解
通常使用的命令是ab –c –n –k -r,分别表示:模拟终端数、发送包数、请求是否带keepalive、忽略错误,默认都是以GET方式去请求的测试10个用户并发 1000个请求$ab -c 10 -n 1000 http://127.0.0.1:90/tpl测试10个用户并发 1000个请求, 测试总时间为 100秒内$ab -c 10 -n 1000-t 100 http://127.0.0.1:90/tpl测试10个用户并发 1000个请求, POST 请求...原创 2022-02-14 10:45:44 · 1840 阅读 · 0 评论 -
go zero 框架
https://github.com/zeromicro/go-zero/blob/master/readme-cn.mdhttps://github.com/zeromicro/go-zero/blob/master/readme-cn.md简介 · go-zero documenthttps://go-zero.dev/cn/安装安装 goctl$go install github.com/zeromicro/go-zero/tools/goctl@latest$goctl -v原创 2022-02-11 14:57:48 · 1022 阅读 · 0 评论 -
nginx + lua + template + go
nginx 配置#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { #DNS解析 resolver 8.8.原创 2022-02-11 14:11:43 · 1237 阅读 · 0 评论 -
lua 的模板 lua-resty-template
https://github.com/bungle/lua-resty-templatehttps://github.com/bungle/lua-resty-templateNginx 配置 server { ...... set $template_root ./site/demo/tpl; location /tpl { default_type text/html; conte原创 2022-02-09 15:32:24 · 1347 阅读 · 0 评论 -
lua2go 为 lua 添加扩展
GitHub - theganyo/lua2go: Easy access to your Go (Golang) modules from Lua and NGINX!Easy access to your Go (Golang) modules from Lua and NGINX! - GitHub - theganyo/lua2go: Easy access to your Go (Golang) modules from Lua and NGINX!https://github.com/thega原创 2022-02-09 09:09:39 · 322 阅读 · 0 评论 -
GO的lua虚拟机 gopher-lua
https://github.com/yuin/gopher-luahttps://github.com/yuin/gopher-luaLua 5.1 Reference Manual - contentshttp://www.lua.org/manual/5.1/go 中使用 luapackage mainimport ( lua "github.com/yuin/gopher-lua")func main() { l := lua.NewState() defer l...原创 2022-02-08 13:28:05 · 1350 阅读 · 0 评论 -
Nginx Lua 安装与配置
OpenResty - 安装Nginx 配置 location /test { #是否开通lua编译缓存 lua_code_cache off; default_type text/html; content_by_lua_file D:/openresty-1.19.9.1-win64/lualib/test/test.lua; }LUA DEMO原创 2022-02-08 09:10:18 · 1835 阅读 · 0 评论 -
Golang–的坑
JSON的序列化性能低下:Golang内置的encoding/json、encoding/gob,采用ffjson; GC问题:减少内存对象。减少对象申请,两个作用:减少内存使用,减少内存碎片; 字符串拼接:尽量使用byte数组,不要用String,由于String会创建新对象; Go占用OS内存释放慢:执行:debug.freeOSMemory(); Goroutine闪退:goroutine闪退,导致应用进程闪退,异常捕获; 并发处理map:必须加读..原创 2022-02-07 16:53:47 · 188 阅读 · 0 评论 -
GO 准备
环境变量GO111MODULE = onGOPROXY =https://goproxy.io,direct创建依赖用于发布go mod init github.com/qg/demo引用第三方包pkg.go.devimport "github.com/xuri/excelize/v2"安装包 go mod tidy或者 go getgithub.com/xuri/excelize/v2运行gogo run .或go run hello.go...原创 2022-01-28 09:38:12 · 378 阅读 · 0 评论