From e3986d5f9c31e6810403b6575edbfa94f00091d9 Mon Sep 17 00:00:00 2001 From: Todd Knight Date: Tue, 14 Sep 2021 13:34:31 -0700 Subject: [PATCH] Running make fmt to fix formatting. --- testing/dbtest/template.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/testing/dbtest/template.go b/testing/dbtest/template.go index 37f2b606f6..d7ecd88da4 100644 --- a/testing/dbtest/template.go +++ b/testing/dbtest/template.go @@ -13,10 +13,8 @@ import ( var testDBPort = "5432" -var ( - // StartUsingTemplate creates a new test database from a postgres template database. - StartUsingTemplate func(dialect string, opt ...Option) (func() error, string, string, error) = startUsingTemplate -) +// StartUsingTemplate creates a new test database from a postgres template database. +var StartUsingTemplate func(dialect string, opt ...Option) (func() error, string, string, error) = startUsingTemplate func init() { rand.Seed(time.Now().UnixNano()) @@ -39,12 +37,12 @@ const ( ) var supportedDialects = map[string]struct{}{ - Postgres: struct{}{}, + Postgres: {}, } var supportedTemplates = map[string]struct{}{ - BoundaryTemplate: struct{}{}, - Template1: struct{}{}, + BoundaryTemplate: {}, + Template1: {}, } const letterBytes = "abcdefghijklmnopqrstuvwxyz"