summaryrefslogtreecommitdiffstats
path: root/modern.go
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2016-12-11 18:56:28 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2016-12-11 18:56:28 -0500
commitab778e442ac0384dd8963979c32bfb09c256cfa1 (patch)
tree137db20b23f06c2b9d80ba6fdfc829de0386add8 /modern.go
parent8d6525e381f23b2335dc2b86282baf2147dd900c (diff)
downloadlastfm-api-ab778e442ac0384dd8963979c32bfb09c256cfa1.tar.gz
Correctable can now be stored
Diffstat (limited to 'modern.go')
-rw-r--r--modern.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modern.go b/modern.go
index fe66164..a01f29b 100644
--- a/modern.go
+++ b/modern.go
@@ -1,6 +1,7 @@
package main
import (
+ "database/sql/driver"
"encoding/json"
"encoding/xml"
"fmt"
@@ -42,6 +43,10 @@ type Correctable struct {
Corrected int `xml:"corrected,attr" json:"corrected"`
}
+func (field Correctable) Value() (driver.Value, error) {
+ return field.Name, nil
+}
+
func NewCorrectable(name string) Correctable {
return Correctable{
Corrected: 0,