If you need to join two (2) strings together in Golang, you can do the following, using the +
concatenation operator:
1
2
3
4
5
6
7
8
9
10
11
|
package main
import ( "fmt")
func main() {
message1 := "Join Strings"
message2 := "Together"
result := message1 + " " + message2
fmt.Println(result)
}
|