12 2020 档案

摘要:序列化 json.Marshal(要序列化的对象) Struct(结构体) → Json //结构体序列化为json p := &People{ Name: "张三", Age: 16, } StructJSON, err := json.Marshal(p) if err != nil { fmt 阅读全文
posted @ 2020-12-29 17:17 伊凡晴天 阅读(2667) 评论(0) 推荐(0) 编辑
摘要:解决方案1: 在项目的根目录下使用如下命令: go mod init (↑ 此命令可能会导致,在使用VsCode保存编辑时产生巨量的卡顿现象,CPU占用过高的情况) 解决方案2: 在Windows PowerShell 中输入如下命令: go env -w GO111MODULE=off 阅读全文
posted @ 2020-12-28 15:01 伊凡晴天 阅读(5419) 评论(0) 推荐(1) 编辑
摘要:Unity3D NGUI插件(3.12/2018/2019)仅供学习,无商业目的 Link:https://pan.baidu.com/s/1-m5sEUxZXlXsMi72o7rXlg Code:zwb9 阅读全文
posted @ 2020-12-24 12:24 伊凡晴天 阅读(875) 评论(6) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2020-12-22 21:59 伊凡晴天 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-22 19:56 伊凡晴天 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-21 23:05 伊凡晴天 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-20 15:03 伊凡晴天 阅读(284) 评论(0) 推荐(0) 编辑
摘要:稀疏数组的理解: 将原数组中为0(无意义的值)剔除,挑出关键值(行,列,数据)存储起来,节省空间资源占用 原数据 转换成稀疏数组后 从稀疏数组转换成数组 1 package main 2 3 import ( 4 "bufio" 5 "fmt" 6 "io" 7 "os" 8 "strconv" 9 阅读全文
posted @ 2020-12-19 22:28 伊凡晴天 阅读(117) 评论(0) 推荐(0) 编辑
摘要:海量用户聊天系统,包含GoLang基础+协程+TCP-Socket+Redis 阅读全文
posted @ 2020-12-19 15:44 伊凡晴天 阅读(674) 评论(0) 推荐(0) 编辑
摘要:1 package main 2 3 import ( 4 "fmt" 5 "math/rand" 6 "time" 7 ) 8 9 var ( 10 //Count 统计获取随机数的个数 11 Count int = 0 12 //MaxRandomNumberLength 最大随机数长度 13 阅读全文
posted @ 2020-12-15 23:52 伊凡晴天 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-15 23:35 伊凡晴天 阅读(1503) 评论(0) 推荐(0) 编辑
摘要:1 package main 2 3 import ( 4 "fmt" 5 "math/rand" 6 "sort" 7 "time" 8 ) 9 10 //CreateRandomStr 创建100个随机字符串姓名-协程 11 func CreateRandomStr(strNameChan ch 阅读全文
posted @ 2020-12-15 22:26 伊凡晴天 阅读(267) 评论(0) 推荐(0) 编辑

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