entc/integration/template: fix go vet errors (#2021)

* fix govet

* fix template and receiver argument
This commit is contained in:
sivchari
2021-10-11 19:38:45 +09:00
committed by GitHub
parent 9e809635b2
commit eee77df5a6
2 changed files with 2 additions and 2 deletions

View File

@@ -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)).

View File

@@ -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)).