随笔 - 173,  文章 - 0,  评论 - 0,  阅读 - 10万
03 2023 档案
go-pprof
摘要:非侵入式的分析工具。 go官方库自带,分为两种: 监控终端运行,监控服务运行。 一、采集command-监控终端运行 库为: runtime/pprof 1、收集运行信息 引入包 import "runtime/pprof" var cpuprofile = flag.String("cpuprof 阅读全文
posted @ 2023-03-25 12:04 黑熊一只 阅读(45) 评论(0) 推荐(0) 编辑
git-module与go-package-挖坑
摘要:短暂的设想过通过git module,来与go-package交叉管理。 挖个坑坑,后续调研一下这块。 阅读全文
posted @ 2023-03-25 11:51 黑熊一只 阅读(11) 评论(0) 推荐(0) 编辑
git杂谈
摘要:梳理一些经验之谈。 一、验证 基于ssh服务器之间的交互,通过ssh-keygen生成对应的加密模式的文件。 目前常用的是rsa加密模式。 生成命令 1 ssh-keygen -t rsa -C "yourAccount@yourEmail" -f "~/.ssh/selfName_rsa" 执行完 阅读全文
posted @ 2023-03-25 11:45 黑熊一只 阅读(9) 评论(0) 推荐(0) 编辑
关于go-vendor和go-mod
摘要:go vendor在这个时间节点来讲的话,可能有些古典的气质了。 go vendor依旧在go mod的架构来讲,= go mod vendor 这个是当时依赖于goland这个ide的环境中,默认会生成对应当前项目的go path全局变量,此时用 go vendor有一个好处,相当于隔离出一个独立 阅读全文
posted @ 2023-03-25 11:23 黑熊一只 阅读(421) 评论(0) 推荐(0) 编辑
关于sys的包管理
摘要:收集各个系统的包管理前端: unix大系 mac系 brew: homebrew linux系 ubuntu apt-get brew: homebrew debian apt-get dpkg: debian包管理器 brew: homebrew centOS yum: 旧版 dnf: yum的升 阅读全文
posted @ 2023-03-14 16:05 黑熊一只 阅读(13) 评论(0) 推荐(0) 编辑
go-protobuf-googleapis
摘要:googleapis,可用于grpc所需proto生成的依赖代码。 https://github.com/googleapis/googleapis 这个可以存放在一个全局目录中,以供使用。 阅读全文
posted @ 2023-03-13 13:57 黑熊一只 阅读(30) 评论(0) 推荐(0) 编辑
go-viper-挖坑
摘要:https://github.com/spf13/viper 配置加载包 挖坑,待写。 阅读全文
posted @ 2023-03-09 13:18 黑熊一只 阅读(25) 评论(0) 推荐(0) 编辑
go-wire-调研中
摘要:https://github.com/google/wire 代码生成器(注入工具)。 详见文档: https://studygolang.com/articles/22266?fr=sidebar 一. 关于依赖问题 1 func wireApp(*dependencyInject) (AppSe 阅读全文
posted @ 2023-03-09 10:14 黑熊一只 阅读(118) 评论(0) 推荐(0) 编辑
go-grpc-常用与高级特性
摘要:什么是 gRPC?# RPC 全称 (Remote Procedure Call),远程过程调用,指的是一台计算机通过网络请求另一台计算机的上服务,从而不需要了解底层网络细节,RPC 是构建在已经存在的协议(TCP/IP,HTTP 等)之上的,RPC 采用的是客户端,服务器模式。gRPC 是云原生计 阅读全文
posted @ 2023-03-09 10:13 黑熊一只 阅读(134) 评论(0) 推荐(0) 编辑
go-excelize
摘要:选定扩展包excelize https://github.com/qax-os/excelize 官方文档: https://github.com/xuri/excelize-doc/tree/master/zh-hans教程文档 https://xieys.club/excelize/ https 阅读全文
posted @ 2023-03-09 10:12 黑熊一只 阅读(206) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示