File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131 - [ No goroutines in ` init() ` ] ( goroutine-init.md )
3232- [ Performance] ( performance.md )
3333 - [ Prefer strconv over fmt] ( strconv.md )
34- - [ Avoid string-to-byte conversion ] ( string-byte-slice.md )
34+ - [ Avoid repeated string-to-byte conversions ] ( string-byte-slice.md )
3535 - [ Prefer Specifying Container Capacity] ( container-capacity.md )
3636- Style
3737 - [ Avoid overly long lines] ( line-length.md )
Original file line number Diff line number Diff line change 1- # Avoid string-to-byte conversion
1+ # Avoid repeated string-to-byte conversions
22
33Do not create byte slices from a fixed string repeatedly. Instead, perform the
44conversion once and capture the result.
Original file line number Diff line number Diff line change 3838 - [ No goroutines in ` init() ` ] ( #no-goroutines-in-init )
3939- [ Performance] ( #performance )
4040 - [ Prefer strconv over fmt] ( #prefer-strconv-over-fmt )
41- - [ Avoid string-to-byte conversion ] ( #avoid-string-to-byte-conversion )
41+ - [ Avoid repeated string-to-byte conversions ] ( #avoid-repeated- string-to-byte-conversions )
4242 - [ Prefer Specifying Container Capacity] ( #prefer-specifying-container-capacity )
4343- [ Style] ( #style )
4444 - [ Avoid overly long lines] ( #avoid-overly-long-lines )
@@ -2192,7 +2192,7 @@ BenchmarkStrconv-4 64.2 ns/op 1 allocs/op
21922192</td ></tr >
21932193</tbody ></table >
21942194
2195- ### Avoid string-to-byte conversion
2195+ ### Avoid repeated string-to-byte conversions
21962196
21972197Do not create byte slices from a fixed string repeatedly. Instead, perform the
21982198conversion once and capture the result.
You can’t perform that action at this time.
0 commit comments