ZhangZhihui's Blog  
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 78 下一页

2024年9月5日

摘要: Stateful HTTP A nice touch to improve our user experience would be to display a one-time confirmation message which the user sees after they’ve added 阅读全文
posted @ 2024-09-05 15:17 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑

2024年9月4日

摘要: Processing forms We’re going to add an HTML form for creating new snippets. The form will look a bit like this: The high-level flow for processing thi 阅读全文
posted @ 2024-09-04 22:36 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑
 
摘要: How middleware works In fact, we’re actually already using some middleware in our application — the http.StripPrefix() function from serving static fi 阅读全文
posted @ 2024-09-04 19:05 ZhangZhihuiAAA 阅读(11) 评论(0) 推荐(0) 编辑

2024年9月3日

摘要: Displaying dynamic data func (app *application) snippetView(w http.ResponseWriter, r *http.Request) { id, err := strconv.Atoi(r.PathValue("id")) if er 阅读全文
posted @ 2024-09-03 20:00 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: Creating a database connection pool // The sql.Open() function initializes a new sql.DB object, which is essentially a // pool of database connections 阅读全文
posted @ 2024-09-03 17:12 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0) 编辑

2024年9月1日

摘要: Web application basics The first thing we need is a handler. If you’ve previously built web applications using a MVC pattern, you can think of handler 阅读全文
posted @ 2024-09-01 18:58 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑

2024年8月30日

摘要: Install Tableplus (https://tableplus.com/blog/2019/10/tableplus-linux-installation.html): Ubuntu 24.04 X86_64 # Add TablePlus gpg key wget -qO - https 阅读全文
posted @ 2024-08-30 13:38 ZhangZhihuiAAA 阅读(54) 评论(0) 推荐(0) 编辑

2024年8月29日

摘要: Add below line in the head part: <link rel="shortcut icon" href="#"> 阅读全文
posted @ 2024-08-29 17:12 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑

2024年8月27日

摘要: These are common programming practices that, while not necessarily wrong, often lead to less efficient, less readable, and less maintainable code. By 阅读全文
posted @ 2024-08-27 10:25 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0) 编辑

2024年8月26日

摘要: • The Mock Object pattern The Mock Object pattern provides three features: 1.Isolation: Mocks isolate the unit of code being tested, ensuring that tes 阅读全文
posted @ 2024-08-26 21:03 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 78 下一页