From 43fd73eab9c69085250cab8c6709fd8fd9ce79d6 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 7 Aug 2018 13:05:32 +0300 Subject: [PATCH] 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 Former-commit-id: a531db90fe02fd327e12ecc20128090e18b3dbcb --- core/router/api_builder_benchmark_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/router/api_builder_benchmark_test.go b/core/router/api_builder_benchmark_test.go index 04c1fd0e..e16f798c 100644 --- a/core/router/api_builder_benchmark_test.go +++ b/core/router/api_builder_benchmark_test.go @@ -1,6 +1,7 @@ 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++ {