ZhangZhihui's Blog |
|
||
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 阅读全文
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 阅读全文
摘要:
How middleware works In fact, we’re actually already using some middleware in our application — the http.StripPrefix() function from serving static fi 阅读全文
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 阅读全文
摘要:
Creating a database connection pool // The sql.Open() function initializes a new sql.DB object, which is essentially a // pool of database connections 阅读全文
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 阅读全文
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 阅读全文
2024年8月29日
摘要:
Add below line in the head part: <link rel="shortcut icon" href="#"> 阅读全文
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 阅读全文
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 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |