Created
February 12, 2020 08:38
-
-
Save slav123/89a375a4666684e707ebcb3544cbfc04 to your computer and use it in GitHub Desktop.
strings manipulation in go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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