Join a slice of strings with a separator:
parts := []string{"a", "b", "c"}
result := strings.Join(parts, "-") // "a-b-c"
words := []string{"Hello", "World"}
sentence := strings.Join(words, " ") // "Hello World"
Join is efficient for combining many strings. It calculates the total length upfront and allocates once, unlike repeated concatenation with +.