Skip to content

Instantly share code, notes, and snippets.

@slav123
Created February 12, 2020 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slav123/89a375a4666684e707ebcb3544cbfc04 to your computer and use it in GitHub Desktop.
Save slav123/89a375a4666684e707ebcb3544cbfc04 to your computer and use it in GitHub Desktop.
strings manipulation in go
package main
import (
"strings"
"fmt"
)
func main() {
var str strings.Builder
for i := 0; i < 1000; i++ {
str.WriteString("a")
}
fmt.Println(str.String())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment