user45742
0
Q:

concatenate a string in golang

// Creating and initializing strings 
    // Using shorthand declaration 
    str3 := "Geeks"
    str4 := "Geeks"
  
    // Concatenating strings 
    // Using + operator 
    result := str3 + "for" + str4 
  
    fmt.Println("New string 2: ", result) 
0

New to Communities?

Join the community