steevehook
8/27/2018 - 9:04 PM

String contatenation in Golang

String contatenation in Golang

package main

import (
    "bytes"
    "fmt"
)

func main() {
    var buffer bytes.Buffer

    for i := 0; i < 1000; i++ {
        buffer.WriteString("a")
    }

    fmt.Println(buffer.String())
}