shelfy/todo.tx
2025-06-06 17:05:15 +02:00

45 lines
789 B
Plaintext

/
Creation des items
-> un items v un nom, un path
export CGO_ENABLED=1
stream
<div hx-ext="sse" sse-connect="/stream" sse-swap="message">
Contents of this box will be updated in real time
with every SSE message received from the chatroom.
</div>
✅ Utilisation
🚀 Développement avec hot reload
bash
Copier
Modifier
docker compose up --build
➡️ Utilise Dockerfile.dev + volumes + air.
🚀 Production
bash
Copier
Modifier
docker compose -f docker-compose.yml -f docker-compose.prod.yml up --build
clean
docker system prune -a --volumes
Loop golang
func main() {
// Declare an array of integers
var numbers = [5]int{1, 2, 3, 4, 5}
// Loop over the array and print each element
for _, number := range numbers {
fmt.Println(number)
}
}