mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-29 15:02:30 +00:00
Apply go fix to simplify using modern features
This patch contains the result of running `go fix ./...`, which applies simplifications that make use of modern language features. There are no logic or behaviour changes.
This commit is contained in:
@@ -192,7 +192,7 @@ func FuzzDomainToUnicode(f *testing.F) {
|
||||
func BenchmarkToCRLF(b *testing.B) {
|
||||
// Generate a 1000-line message.
|
||||
bb := bytes.Buffer{}
|
||||
for i := 0; i < 1000; i++ {
|
||||
for range 1000 {
|
||||
bb.WriteString("this is a very pretty line 🐅\n")
|
||||
}
|
||||
buf := bb.Bytes()
|
||||
@@ -206,7 +206,7 @@ func BenchmarkToCRLF(b *testing.B) {
|
||||
func BenchmarkStringToCRLF(b *testing.B) {
|
||||
// Generate a 1000-line message.
|
||||
sb := strings.Builder{}
|
||||
for i := 0; i < 1000; i++ {
|
||||
for range 1000 {
|
||||
sb.WriteString("this is a very pretty line 🐅\n")
|
||||
}
|
||||
s := sb.String()
|
||||
|
||||
Reference in New Issue
Block a user