上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 36 下一页
摘要: 《用Gin框架构建分布式应用》学习第11天,p208-p211总结,总计4页。 一、技术总结 1.JavaScript 前端永远离不开HTML,CSS,JavaScript这三个概念。但是书中作者基本没有进行介绍。此时要求我们自己具备一定的前端基础。关于Javascript的tutorial, 个人 阅读全文
posted @ 2024-10-26 23:53 codists 阅读(32) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第10天,p143-p207总结,总计65页。 一、技术总结 1.auth0 本人实际工作中未遇到过,mark一下,参考:https://auth0.com/。 2.使用template (1)c.File() (2)router.Static() (3)route 阅读全文
posted @ 2024-10-25 23:58 codists 阅读(27) 评论(0) 推荐(0)
摘要: 《用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 阅读(37) 评论(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 阅读(34) 评论(0) 推荐(0)
摘要: 《用Gin框架构建分布式应用》学习第7天,p101-p107总结,总计7页。 一、技术总结 1.StatusBadRequest vs StatusInternalServerError 写代码的时候有一个问题,什么时候使用 StatusBadRequest(400错误),什么时候使用 Status 阅读全文
posted @ 2024-10-21 00:06 codists 阅读(46) 评论(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 阅读(54) 评论(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 阅读(64) 评论(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 阅读(50) 评论(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 阅读(50) 评论(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 阅读(41) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 36 下一页