Gaaker Go

Golang Use plus operator to concatenate strings

Two strings can be concatenated together with a plus sign (+).

The following is a complete code example.

package main

import "fmt"

func main() {
    fmt.Println("go" + "lang")
}

Below is the program output:

golang
< Use plus operator to concatenate strings Use plus operator to concatenate strings >