竞争无处不在,青春永不言败!专业*代码,副业修bug

Talk is cheap , show me the code!



随笔分类 -  Golang

Go language
摘要:rpc 1. 面临的问题 a. Call 的 id 映射 b. 序列化和反序列化 json 序列化/反序列化 c. 网络传输 http2.0 ==> rpc ### 自己实现的 demo 级别的 rpc 封装 提供 add 方法方 # -*- coding: utf-8 -*- # __author 阅读全文
posted @ 2021-10-07 17:20 云雾散人 阅读(118) 评论(0) 推荐(0)
摘要:channel 提供了一种通信机制, 定向 py, java 中的 消息队列 package main import "fmt" func main() { // 定义一个 channel 用来通信 他是引用类型 默认 nil var msg chan string // byte // slice 阅读全文
posted @ 2021-10-06 22:54 云雾散人 阅读(349) 评论(0) 推荐(0)
摘要:协程 初识 GMP python 的单个协程占用 内存少 import asyncio async def p(n : int) -> None: print(n) await asyncio.sleep(1) async def main(): for i in range(1000): asyn 阅读全文
posted @ 2021-10-06 21:30 云雾散人 阅读(73) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2021-10-05 23:00 云雾散人 阅读(0) 评论(0) 推荐(0)
摘要:NSQ 阅读全文
posted @ 2020-11-13 17:03 云雾散人 阅读(113) 评论(0) 推荐(0)
摘要:基本语法练习 打印 乘法表 package main import ("fmt") func main(){ for n:=1;n<=9;n++{ for m:=1;m<=n;m++{ fmt.Print(m,"*",n,"=",m*n,"\t") } fmt.Println() } } 有意思的 阅读全文
posted @ 2019-02-12 09:48 云雾散人 阅读(182) 评论(0) 推荐(0)

Your attitude not your aptitude will determine your altitude!

如果有来生,一个人去远行,看不同的风景,感受生命的活力!