internals: core/router/api_builder_benchmark_test.go: replace the strings.Builder(go 1.10+) with the bytes.Buffer, it is a test so we are ok let it build and run for go1.10- as well
package router
import (
+ "bytes"
"math/rand"
"strings"
"testing"
@@ -44,7 +45,8 @@ func randStringBytesMaskImprSrc(n int) string {
// END.
func genPaths(routesLength, minCharLength, maxCharLength int) []string {
- b := new(strings.Builder)
+ // b := new(strings.Builder)
+ b := new(bytes.Buffer)
paths := make([]string, routesLength)
pathStart := '/'
for i := 0; i < routesLength; i++ {
