github.com/enetx/g@v1.0.80/examples/strings_builder.go (about) 1 package main 2 3 import "github.com/enetx/g" 4 5 func main() { 6 builder := g.NewString("builder\n").Builder() 7 8 for range 10 { 9 builder. 10 Write("a"). 11 WriteRune('b'). 12 WriteByte('c'). 13 Write("\n") 14 } 15 16 builder.String().Print() 17 }