Join Strings
Join concatenates a list of strings to create a single string. A separator is placed between elements in the resulting string.
Examples
Filter
package main
import (
"fmt"
"strings"
)
func main() {
s := []string{"foo", "bar", "baz"}
fmt.Println(strings.Join(s, ", "))
}
Last Run
:
foo, bar, baz