Go Standard Library Cookbook
上QQ阅读APP看书,第一时间看更新

Joining the string slice with a separator

The recipe, Breaking the string into words, led us through the task of splitting the single string into substrings, according to defined rules. This recipe, on the other hand, describes how to concatenate the multiple strings into a single string with a given string as the separator.

A real use case could be the problem of dynamically building a SQL select statement condition.