摘要:
Just disable the preview mode:
阅读全文
posted @ 2024-09-18 20:48
ZhangZhihuiAAA
阅读(31)
推荐(0)
摘要:
问题1:在数据库表中看不到通过Web页面创建的数据 创建过程成功执行,没有数据库连接错误,也没有页面错误和数据处理错误,并且同样的操作以前创建的数据能在数据库表中查看到,突然之间就出现这样的问题。 先检查了代码,没有跟数据库相关的改动,怀疑是docker中的mysql容器在持久化方面出了问题。 将所
阅读全文
posted @ 2024-09-12 21:18
ZhangZhihuiAAA
阅读(13)
推荐(0)
posted @ 2024-09-10 17:43
ZhangZhihuiAAA
阅读(10)
推荐(0)
posted @ 2024-09-10 17:01
ZhangZhihuiAAA
阅读(16)
推荐(0)
摘要:
Creating a unit test In Go, it’s standard practice to write your tests in *_test.go files which live directly alongside the code that you’re testing.
阅读全文
posted @ 2024-09-07 16:29
ZhangZhihuiAAA
阅读(19)
推荐(0)
摘要:
autocommit Command-Line Format --autocommit[={OFF|ON}] System Variable autocommit Scope Global, Session Dynamic Yes SET_VAR Hint Applies No Type Boole
阅读全文
posted @ 2024-09-07 10:31
ZhangZhihuiAAA
阅读(43)
推荐(0)
摘要:
Using request context At the moment our logic for authenticating a user consists of simply checking whether a "authenticatedUserID" value exists in th
阅读全文
posted @ 2024-09-07 09:22
ZhangZhihuiAAA
阅读(24)
推荐(0)
摘要:
User authentication Open up your handlers.go file and add placeholders for the five new handler functions as follows: func (app *application) userSign
阅读全文
posted @ 2024-09-05 21:19
ZhangZhihuiAAA
阅读(26)
推荐(0)
摘要:
The http.Server struct Although http.ListenAndServe() is very useful in short examples and tutorials, in real-world applications it’s more common to m
阅读全文
posted @ 2024-09-05 19:27
ZhangZhihuiAAA
阅读(25)
推荐(0)
摘要:
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
阅读(18)
推荐(0)