Ajout d'un mutex pour pouvoir mettre à jour via une goroutine la liste des messages

This commit is contained in:
Laurent Ulrich
2025-08-08 10:59:51 +02:00
parent 614a6059f5
commit 9f88d84513
5 changed files with 42 additions and 31 deletions

View File

@@ -3,13 +3,13 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>{{.Title}}</title>
<title>{{.BlogTitle}}</title>
</head>
<h1>{{.Title}}</h1>
<h1>{{.BlogTitle}}</h1>
<body>
<h2>{{(index .Posts 0).Title}}</h2>
<h2>{{.Title}}</h2>
<div>
{{(index .Posts 0).HTML}}
{{.HTML}}
</div>
</body>