From eee77df5a619af0fa3e57e4dc8f1efa90a4f4593 Mon Sep 17 00:00:00 2001 From: sivchari Date: Mon, 11 Oct 2021 19:38:45 +0900 Subject: [PATCH] entc/integration/template: fix go vet errors (#2021) * fix govet * fix template and receiver argument --- entc/integration/template/ent/node.go | 2 +- entc/integration/template/ent/template/node.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entc/integration/template/ent/node.go b/entc/integration/template/ent/node.go index dd680ad0d..723c394ac 100644 --- a/entc/integration/template/ent/node.go +++ b/entc/integration/template/ent/node.go @@ -225,7 +225,7 @@ func (t *tables) Load(ctx context.Context, querier querier) ([]string, error) { return tables, err } -func (tables) load(ctx context.Context, querier querier) ([]string, error) { +func (*tables) load(ctx context.Context, querier querier) ([]string, error) { rows := &sql.Rows{} query, args := sql.Select("type"). From(sql.Table(schema.TypeTable)). diff --git a/entc/integration/template/ent/template/node.tmpl b/entc/integration/template/ent/template/node.tmpl index 83b0ccad2..f0975dab0 100644 --- a/entc/integration/template/ent/template/node.tmpl +++ b/entc/integration/template/ent/template/node.tmpl @@ -175,7 +175,7 @@ func (t *tables) Load(ctx context.Context, querier querier) ([]string, error) { {{/* An example of a local helper template. */}} {{ define "node/helper/loadtable" }} -func (tables) load(ctx context.Context, querier querier) ([]string, error) { +func (*tables) load(ctx context.Context, querier querier) ([]string, error) { rows := &sql.Rows{} query, args := sql.Select("type"). From(sql.Table(schema.TypeTable)).