Concat Strings Golang Code Example


Example: 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)

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy