From 017d71453282c7367b0d465a6b0878f9a67c4823 Mon Sep 17 00:00:00 2001 From: Dan Markham Date: Mon, 16 Mar 2020 10:52:02 -0700 Subject: [PATCH] typeo in the template var --- golden_test.go | 4 ++-- sql.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/golden_test.go b/golden_test.go index 040fa68..194679b 100644 --- a/golden_test.go +++ b/golden_test.go @@ -1685,7 +1685,7 @@ func (i *Prime) Scan(value interface{}) error { var str string switch v := value.(type) { case []byte: - str = string(b) + str = string(v) case string: str = v case fmt.Stringer: @@ -1872,7 +1872,7 @@ func (i *Prime) Scan(value interface{}) error { var str string switch v := value.(type) { case []byte: - str = string(b) + str = string(v) case string: str = v case fmt.Stringer: diff --git a/sql.go b/sql.go index 2a2906f..09f050c 100644 --- a/sql.go +++ b/sql.go @@ -15,7 +15,7 @@ const scanMethod = `func (i *%[1]s) Scan(value interface{}) error { var str string switch v := value.(type) { case []byte: - str = string(b) + str = string(v) case string: str = v case fmt.Stringer: