refactor: micro optimization

This commit is contained in:
Reinaldy Rafli 2021-10-28 00:21:11 +07:00
parent 063b44a57e
commit 096b6b46d4
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 4 additions and 4 deletions

View File

@ -49,16 +49,16 @@ func WithConfig(txt string, config Config) string {
arr = append(arr, temp)
}
var output string
var output strings.Builder
for k := 0; k < llen; k++ {
for l := 0; l < len(arr); l++ {
output += arr[l][k]
output.WriteString(arr[l][k])
}
output += "\n"
output.WriteString("\n")
}
return output
return output.String()
}
//