![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Golang
Golang
进无止境(* ̄︶ ̄)
这个作者很懒,什么都没留下…
展开
-
grpc使用教程
【代码】grpc使用教程。原创 2023-11-09 13:05:16 · 318 阅读 · 0 评论 -
go 内存泄露
记一次生产环境 golang 内存泄露事故原创 2023-09-22 12:15:59 · 370 阅读 · 0 评论 -
golang 实现雪花算法
golang 实现雪花算法原创 2023-10-31 14:59:07 · 356 阅读 · 0 评论 -
Golang 前序、中序、后序遍历
【代码】Golang 前序、中序、后序遍历。原创 2023-02-02 11:21:10 · 214 阅读 · 0 评论 -
grafana 配置 influxdb 数据源
influxdb 是一种时序数据库,常用来做监控储存时序数据。grafana 是一个可视化的分析平台,常用来做服务的监控与告警。为降低安装复杂度,本文使用docker来安装以上应用。原创 2022-06-06 17:29:39 · 2357 阅读 · 2 评论 -
pprof 使用教程
简介 pprof 是 golang 自带的性能分析工具,可以查看web应用的运行状态,分析程序CPU,内存,goroutine等使用情况。 golang 针对不同使用场景,提供了以下两种方式开启pprof性能分析 runtime/pprof:采集程序(非 Server)的运行数据进行分析 net/http/pprof:采集 HTTP Server 的运行时数据进行分析 开启pprof,举个栗子 package main import ( "net/http" _ "net/htt原创 2021-10-28 15:24:28 · 3304 阅读 · 0 评论 -
Go环境搭建(window)
1,下载软件 官网下载地址:https://golang.google.cn/dl/ 选择 go1.17 版本免安装包下载 2,配置环境变量 1,将刚现在的go软件包放到 C:\learn\go 目录下 2,在环境变量path中加入 C:\learn\go\bin 路径 3, 创建gopath 目录:C:\learn\gopath 4,在环境变量path中加入 C:\learn\gopath\bin 路径 5,创建GOPATH 环境变量,值为C:\learn\gopath 6, 创建GO111MODUL原创 2021-10-20 14:07:17 · 142 阅读 · 0 评论