From ff14d442c9645c3ae955d2d433ba894d7668785c Mon Sep 17 00:00:00 2001 From: hjusforgues Date: Wed, 13 Jul 2016 13:50:58 +0700 Subject: [PATCH] Remove pointer-receivers for Marshalling func in bootstrap file --- bootstrap/bootstrap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index e9a1d21..3a83e94 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -59,11 +59,11 @@ func (g *Generator) writeStub() error { for _, t := range g.Types { fmt.Fprintln(f) if !g.NoStdMarshalers { - fmt.Fprintln(f, "func (*", t, ") MarshalJSON() ([]byte, error) { return nil, nil }") + fmt.Fprintln(f, "func (", t, ") MarshalJSON() ([]byte, error) { return nil, nil }") fmt.Fprintln(f, "func (*", t, ") UnmarshalJSON([]byte) error { return nil }") } - fmt.Fprintln(f, "func (*", t, ") MarshalEasyJSON(w *jwriter.Writer) {}") + fmt.Fprintln(f, "func (", t, ") MarshalEasyJSON(w *jwriter.Writer) {}") fmt.Fprintln(f, "func (*", t, ") UnmarshalEasyJSON(l *jlexer.Lexer) {}") fmt.Fprintln(f) fmt.Fprintln(f, "type EasyJSON_exporter_"+t+" *"+t)