mirror of https://github.com/dmarkham/enumer.git
typeo in the template var
This commit is contained in:
parent
3100ad138c
commit
017d714532
|
@ -1685,7 +1685,7 @@ func (i *Prime) Scan(value interface{}) error {
|
||||||
var str string
|
var str string
|
||||||
switch v := value.(type) {
|
switch v := value.(type) {
|
||||||
case []byte:
|
case []byte:
|
||||||
str = string(b)
|
str = string(v)
|
||||||
case string:
|
case string:
|
||||||
str = v
|
str = v
|
||||||
case fmt.Stringer:
|
case fmt.Stringer:
|
||||||
|
@ -1872,7 +1872,7 @@ func (i *Prime) Scan(value interface{}) error {
|
||||||
var str string
|
var str string
|
||||||
switch v := value.(type) {
|
switch v := value.(type) {
|
||||||
case []byte:
|
case []byte:
|
||||||
str = string(b)
|
str = string(v)
|
||||||
case string:
|
case string:
|
||||||
str = v
|
str = v
|
||||||
case fmt.Stringer:
|
case fmt.Stringer:
|
||||||
|
|
2
sql.go
2
sql.go
|
@ -15,7 +15,7 @@ const scanMethod = `func (i *%[1]s) Scan(value interface{}) error {
|
||||||
var str string
|
var str string
|
||||||
switch v := value.(type) {
|
switch v := value.(type) {
|
||||||
case []byte:
|
case []byte:
|
||||||
str = string(b)
|
str = string(v)
|
||||||
case string:
|
case string:
|
||||||
str = v
|
str = v
|
||||||
case fmt.Stringer:
|
case fmt.Stringer:
|
||||||
|
|
Loading…
Reference in New Issue