
golanng
文章平均质量分 82
别叫我小帅哥
致力于开拓智能家电的事业
展开
-
golang的一些使用技巧
// 我是谁已经不重要了,重要的是我们可以一起同行! 来吧, 一起go吧!1.枚举的实现const ( freeTime = 5 betTime = 9 openTime = 7)比如 定义字节大小的枚举const(b = 1<<(10*iota) //1kb //1024mb...原创 2019-05-18 22:09:30 · 660 阅读 · 0 评论 -
golang 简单的区块链
import ( "crypto/sha256" "encoding/hex" "time")type Block struct { Index int64 //编号 Timestamp int64 //时间戳 PrevBlockHash string //上一个块的哈希值 Hash string //哈希值 Data string //要存储的数值...原创 2019-06-30 23:14:42 · 2390 阅读 · 0 评论 -
go leaf 从入坑到起飞
之所以使用go leaf是因为其轻便,开发效率高不高,都是看个人的,好不好用,也是看个人的,咱们不予以置评,开始干活。关于go leaf的下载https://github.com/name5566/leaf框架介绍go leaf的框架介绍,网上可以搜索,这里跳过.直接进入go leaf的使用.障碍一:go leaf如何使用protobuf??我这边使用...原创 2019-06-30 23:23:36 · 11092 阅读 · 5 评论