上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 36 下一页
摘要: 《用Gin框架构建分布式应用》学习第9天,p127-p142总结,总计16页。 一、技术总结 1.Authentication方式汇总 (1)API keys API keys 认证方式示例: func (handler *RecipesHandler) NewRecipeHandler(c *gi 阅读全文
posted @ 2024-10-23 23:30 codists 阅读(56) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第8天,p108-p126总结,总计18页。 一、技术总结 1.Redis eviction policy (1)什么是 eviction policy? The eviction policy determines what happens when a data 阅读全文
posted @ 2024-10-22 23:00 codists 阅读(47) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第7天,p101-p107总结,总计7页。 一、技术总结 1.StatusBadRequest vs StatusInternalServerError 写代码的时候有一个问题,什么时候使用 StatusBadRequest(400错误),什么时候使用 Status 阅读全文
posted @ 2024-10-21 00:06 codists 阅读(59) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第6天,p88-p100总结,总计13页。 一、技术总结 1.MongoDB CRUD操作 (1)InsertOne(), InsertMany() (2)Find() (3)UpdateOne, UpdateMany() (4)DeleteOne(), Delet 阅读全文
posted @ 2024-10-20 00:10 codists 阅读(68) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第5天,p77-p87总结,总计11页。 一、技术总结 1.Go知识点 (1)context 2.on-premises software p80, A container is like a separate OS, but not virtualized; it 阅读全文
posted @ 2024-10-17 23:29 codists 阅读(81) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第4天,p32-p76总结,总计25页。 一、技术总结 1.Go知识点 (1)iouti 书上使用ioutil包读取JSON文件,但是从go 1.16 开始,不再推荐使用ioutil,应该使用os 包。 (2)json.Unmarshal() vs json.New 阅读全文
posted @ 2024-10-16 23:55 codists 阅读(60) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第3天,p32-p51总结,总计20页。 一、技术总结 1.Go知识点 slice, struct。 2.Gin知识点 (1)c.XML() 使用c.XML()解析cmx结构。 (2)c.ShouldBindJSON() 将struct转成json。 gin所有函数 阅读全文
posted @ 2024-10-16 00:15 codists 阅读(60) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第2天,p20-p31总结,总计12页。 一、技术总结 1.第一个gin程序 // main.go package main import "github.com/gin-gonic/gin" func main() { r := gin.Default() r.G 阅读全文
posted @ 2024-10-14 00:01 codists 阅读(52) 评论(0) 推荐(0)
摘要: 《使用Gin框架构建分布式应用》学习第1天,p1-p19总结,总计19页。 一、技术总结 1.go get & go install 执行go get 或者 go install 命令后package会被安装到哪里?参考:https://go.dev/ref/mod#go-install VSCod 阅读全文
posted @ 2024-10-12 23:58 codists 阅读(105) 评论(0) 推荐(0)
摘要: 之所以看这本书,是想了解一些跟汇编相关的知识,打开这本书后就被作者的观点——“If you don't understand something the first time, reread it. If you still don't understand it, it is sometimes 阅读全文
posted @ 2024-10-11 21:39 codists 阅读(123) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 36 下一页