From cc584fb19c8ed4dd275451ca6bee36275b125094 Mon Sep 17 00:00:00 2001 From: Mohammad Rajabloo Date: Tue, 19 May 2020 01:35:49 +0430 Subject: [PATCH] fix miss word second code is implementing of scanner interface --- _posts/2015-06-12-scanner-valuer.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2015-06-12-scanner-valuer.markdown b/_posts/2015-06-12-scanner-valuer.markdown index 7d3a072..99fa333 100644 --- a/_posts/2015-06-12-scanner-valuer.markdown +++ b/_posts/2015-06-12-scanner-valuer.markdown @@ -167,7 +167,7 @@ sql: Scan error on column index 1: unsupported driver -> Scan pair: int64 -> *ma I am sorry, your scanning failed...better luck next time! {% endhighlight %} -Shucks. I guess we need some glue to make database/sql understand how to put the value from the database into our data structure. That glue is the scanner interface. Much like the Valuer interface, we need to perform some conversions to get the data from the database into our structures. Below is our implementation of a valuer for our YesNoEnum type: +Shucks. I guess we need some glue to make database/sql understand how to put the value from the database into our data structure. That glue is the scanner interface. Much like the Valuer interface, we need to perform some conversions to get the data from the database into our structures. Below is our implementation of a scanner for our YesNoEnum type: {% highlight go %}