Does the Go compiler concatenate strings separated by a plus sign?

Viewed 377

Let's say I have the following in my code:

err := "This is a very long error message"+
    "that spans multiple lines."

Will Go compile this under the hood into one string, or is there some small penalty associated with doing the addition there?

2 Answers
Related