01-Go语言 grpc入门教程 2021-04-28 Go go 语言 grpc 入门教程 1: 安装 go 语言 grpc 包 2:安装 protobuf 编译器 2.1 安装 protoc 编译器 2.2 安装编译器 go 语言插件 3: Example 目录结构 4: 定义服务 5: 编译 proto 协议文件 6: 实现服务端代码 7 阅读更多
01-Rust基本语法 2021-04-27 Rust rust 基本语法 1: 变量 2: float 类型 3: 复合类型:tuple 元组,arrary,slice 4: 字符串 5: 条件分支 6: 循环语句 7: 所有权 ownership 7.1 所有权—变量 阅读更多
01-win10安装Rust步骤 2021-04-25 Rust 1: 首先配置环境变量 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 # 修改为国内镜像 # 由于rustup的官方服务器在国外,如果直接按照rust官网的方式安 阅读更多
01-Golang net/http 性能优化 2021-04-24 Go Golang net/http 性能优化 1: 使用 DefaultClient 2: 使用默认的 DefaultTransport 3: 解决办法是自己设置 DefaultMaxIdleConnsPerHost Golang net/http 性能优化 Go 语言内置 net\http 包十分优秀,我们通过这个包可以很方便的去实现 HTTP 的客户端和服务 阅读更多
01-Linux Manual 2021-04-19 Linux 1: 文件 1.1 查看文件内容 1.1.1 head 1.1.2 tail 1.1.3 cat 1.1.4 nl 1.1.5 more 1.2 创建 1.2.1 touch 1.2.2 mkdir 1.2.3 mktemp 1.3 删除 1.3.1 rm 1.3.2 rmdir 1.4 查找文件 1.4.1 find 1.4.2 locate 1.5 ls 1.6 pwd 1.7 wc 1.8 chattr 1.9 paste 1.10 stat 1.11 grep 1.12 sed 1.12.1 执行多个命令 1.12.2 从 阅读更多
01-Go开发效率神器汇总 2021-04-17 Go Table of Contents Table of Contents 1:开发工具 2:调试工具 3:网络工具 1:开发工具 1: sql2go sql 语句转换为 Go 结构体,使用 ddl。 http://stming.cn/tool/sql2go.html 2: json2go 将 json 格式转为 Go struct https://mholt.github.io/json-to-go/ 3: toml2go 将编码后的 toml 文 阅读更多
01-Go格式化占位符汇总 2021-04-17 Go Go格式化占位符汇总 1:占位符 placeholder 1.1 通用占位符 placeholder 1.2 整形占位符 placeholder 1.3 浮点数与复数 placeholder 1.4 字符串和[]byte placeholder 1.5 pointer 1.6 宽度标识符 placeholder 1.7 其他 flag 2:go 占位符 阅读更多
02-Go常用库积累 2021-04-17 Go 1:日志库 2:配置库 3:存储相关 4:数据结构 5:CLI 命令行 6:web 框架 7:RPC 和微服务 7.1 Remote Procedure Call 7.1.1 原生 RPC 7.1.2 GRPC 7.1.2.1 GRPC 安装 7.1.2.2 GRPC 使用 7.1.2.3 grpc-middleware 7.1.2.4 GRPC 测试 阅读更多
01-加密技术,数字签名,数字证书 2021-04-16 Linux . Table of Contents Table of Contents 1:前言 Perface 2:数字签名 digitial signature 2.1 什么是数字签名 2.1.1 生成数字签名 2.1.2 验证签名 2.2 数字签名算法(摘要算法 digest) 3:数字证书 (Digital Certificate, CA) 4: 阅读更多
01-Linux添加cron定时任务 2021-04-15 Linux 1: 安装 Cron 1.1 Ubuntu 下 crontab 的安装和使用 2: cron 使用 2.1: cron 基本命令 2.2: cron 定时任务脚本格式 2.3: 对 Cron 任务进行列表显示 2.2: 编辑 cron 定时任务脚本 2.4 sudo用户编辑/etc/c 阅读更多