Created
April 16, 2021 07:22
-
-
Save tremaineeto/f2cda38ea5ec9472b5f79224a5db497f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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