mirror of https://github.com/dmarkham/enumer.git
need to conform to MarshalCQL interface correctly
This commit is contained in:
parent
321577c3e2
commit
161c67e659
|
@ -156,7 +156,7 @@ func (g *Generator) buildJSONMethods(runs [][]Value, typeName string, runsThresh
|
|||
// [1]: type name
|
||||
const cqlMethods = `
|
||||
// MarshalCQL implements the gocql.Marshaler interface for %[1]s
|
||||
func (i %[1]s) MarshalCQL() ([]byte, error) {
|
||||
func (i %[1]s) MarshalCQL(info gocql.TypeInfo) ([]byte, error) {
|
||||
return []byte(i.String()), nil
|
||||
}
|
||||
|
||||
|
|
|
@ -1846,7 +1846,7 @@ func (i Prime) IsAPrime() bool {
|
|||
}
|
||||
|
||||
// MarshalCQL implements the gocql.Marshaler interface for Prime
|
||||
func (i Prime) MarshalCQL() ([]byte, error) {
|
||||
func (i Prime) MarshalCQL(info gocql.TypeInfo) ([]byte, error) {
|
||||
return []byte(i.String()), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue