Skip to content

Instantly share code, notes, and snippets.

@tremaineeto
Created April 16, 2021 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tremaineeto/f2cda38ea5ec9472b5f79224a5db497f to your computer and use it in GitHub Desktop.
Save tremaineeto/f2cda38ea5ec9472b5f79224a5db497f to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"strings"
)
func main() {
foodItems := []string{"pizza", "pasta", "sushi", "pho", "tikka masala"}
// space after comma
fmt.Println(strings.Join(foodItems, ", "))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment