From 161c67e6593a1a0add330600de83563d6cd8b027 Mon Sep 17 00:00:00 2001 From: Gilberto Morejon Date: Tue, 3 Mar 2020 15:47:04 -0800 Subject: [PATCH] need to conform to MarshalCQL interface correctly --- enumer.go | 2 +- golden_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/enumer.go b/enumer.go index 63941dd..4912441 100644 --- a/enumer.go +++ b/enumer.go @@ -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 } diff --git a/golden_test.go b/golden_test.go index 1efc715..2edd8d2 100644 --- a/golden_test.go +++ b/golden_test.go @@ -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 }