To count backwards, start high and decrement:
for i := 5; i > 0; i-- {
fmt.Println(i)
}
fmt.Println("Liftoff!")
This prints , , , , , then "Liftoff!". The condition i > 0 keeps the loop running while i is positive. Decrementing loops are useful for countdowns or processing arrays in reverse.