Join Strings

Join concatenates a list of strings to create a single string. A separator is placed between elements in the resulting string.

Examples in Go
package main

import (
	"fmt"
	"strings"
)

func main() {
	s := []string{"foo", "bar", "baz"}
	fmt.Println(strings.Join(s, ", "))
}
Last Run  :
foo, bar, baz