From 175901bb93ef9404a71fd21b6ca8d6767e72e99f Mon Sep 17 00:00:00 2001 From: Van Date: Wed, 18 Mar 2015 21:43:29 +0800 Subject: [PATCH] new to &{} --- util/panic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/panic.go b/util/panic.go index 7d41ea7..570e2c9 100644 --- a/util/panic.go +++ b/util/panic.go @@ -44,7 +44,7 @@ func Recover() { // stack implements Stack, skipping 2 frames. func stack() []byte { - buf := new(bytes.Buffer) // the returned data + buf := &bytes.Buffer{} // the returned data // As we loop, we open files and read them. These variables record the currently // loaded file. var lines [][]byte