Gin1.5 bytes.Buffer to strings.Builder (#1939)

* Replace bytes.Buffer to strings.Builder

* Merge the latest changes

* Update errors.go
This commit is contained in:
guonaihong
2019-06-29 20:43:32 +08:00
committed by thinkerou
parent 3f53a58d4a
commit b67bc8f005
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,6 @@
package gin
import (
"bytes"
"fmt"
"html/template"
"runtime"
@ -38,7 +37,7 @@ func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {
func debugPrintLoadTemplate(tmpl *template.Template) {
if IsDebugging() {
var buf bytes.Buffer
var buf strings.Builder
for _, tmpl := range tmpl.Templates() {
buf.WriteString("\t- ")
buf.WriteString(tmpl.Name())