by tajpulo · 1y ago · 0 comments
values := []string{"hello", "world"}
for v, value := range values {
fmt.Printf("%s", value);
}
inter {
fmt.Printf(",")
}
before {
fmt.Printf("[")
}
after {
fmt.Println("]")
}
empty {
fmt.Println("(nothing found)")
}
[0] https://lukas-prokop.at/articles/2024-04-24-for-loop-extensi...No comments yet.