From c6f808011bfc530932e30d4f9a3de0967f02133b Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Mon, 6 Jul 2015 12:37:49 -0700 Subject: [PATCH] Forget to add var declaration --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index c53fa6a..7dd117c 100644 --- a/types.go +++ b/types.go @@ -56,7 +56,7 @@ type User struct { } func (u User) String() string { - str string + var str string if u.FirstName != "" { str += u.FirstName if u.LastName != "" {