package main
import (
"fmt"
"strings"
)
func main() {
var builder strings.Builder // Step 1: Create a strings.Builder instance
// Step 2: Use the WriteString method to append strings to the builder
builder.WriteString("Hello, ") // Append "Hello, "
builder.WriteString("Go ") // Append "Go "
builder.WriteString("String ") // Append "String "
builder.WriteString("Builder!") // Append "Builder!"
result := builder.String() // Step 3: Get the final concatenated string using String method
fmt.Println(result) // Step 4: Print the result
}