Skip to content

Commit 9a59d89

Browse files
authored
gofmt -s -w . (#890)
1 parent 9dbb0bc commit 9a59d89

File tree

166 files changed

+11
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+11
-339
lines changed

internal/codegen/golang/imports.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (i *importer) interfaceImports() fileImports {
136136
}
137137

138138
std := map[string]struct{}{
139-
"context": struct{}{},
139+
"context": {},
140140
}
141141
if uses("sql.Null") {
142142
std["database/sql"] = struct{}{}
@@ -183,12 +183,12 @@ func (i *importer) interfaceImports() fileImports {
183183
}
184184

185185
pkgs := make([]ImportSpec, 0, len(pkg))
186-
for spec, _ := range pkg {
186+
for spec := range pkg {
187187
pkgs = append(pkgs, spec)
188188
}
189189

190190
stds := make([]ImportSpec, 0, len(std))
191-
for path, _ := range std {
191+
for path := range std {
192192
stds = append(stds, ImportSpec{Path: path})
193193
}
194194

@@ -243,12 +243,12 @@ func (i *importer) modelImports() fileImports {
243243
}
244244

245245
pkgs := make([]ImportSpec, 0, len(pkg))
246-
for spec, _ := range pkg {
246+
for spec := range pkg {
247247
pkgs = append(pkgs, spec)
248248
}
249249

250250
stds := make([]ImportSpec, 0, len(std))
251-
for path, _ := range std {
251+
for path := range std {
252252
stds = append(stds, ImportSpec{Path: path})
253253
}
254254

@@ -330,7 +330,7 @@ func (i *importer) queryImports(filename string) fileImports {
330330
}
331331

332332
std := map[string]struct{}{
333-
"context": struct{}{},
333+
"context": {},
334334
}
335335
if uses("sql.Null") {
336336
std["database/sql"] = struct{}{}
@@ -380,12 +380,12 @@ func (i *importer) queryImports(filename string) fileImports {
380380
}
381381

382382
pkgs := make([]ImportSpec, 0, len(pkg))
383-
for spec, _ := range pkg {
383+
for spec := range pkg {
384384
pkgs = append(pkgs, spec)
385385
}
386386

387387
stds := make([]ImportSpec, 0, len(std))
388-
for path, _ := range std {
388+
for path := range std {
389389
stds = append(stds, ImportSpec{Path: path})
390390
}
391391

internal/codegen/kotlin/imports.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (i *importer) interfaceImports() [][]string {
5757

5858
std := stdImports(uses)
5959
stds := make([]string, 0, len(std))
60-
for s, _ := range std {
60+
for s := range std {
6161
stds = append(stds, s)
6262
}
6363

@@ -85,7 +85,7 @@ func (i *importer) modelImports() [][]string {
8585
}
8686

8787
stds := make([]string, 0, len(std))
88-
for s, _ := range std {
88+
for s := range std {
8989
stds = append(stds, s)
9090
}
9191

@@ -163,7 +163,7 @@ func (i *importer) queryImports(filename string) [][]string {
163163
}
164164

165165
stds := make([]string, 0, len(std))
166-
for s, _ := range std {
166+
for s := range std {
167167
stds = append(stds, s)
168168
}
169169

internal/sql/ast/a_array_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_ArrayExpr struct {
64
Elements *List
75
Location int

internal/sql/ast/a_const.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Const struct {
64
Val Node
75
Location int

internal/sql/ast/a_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Expr struct {
64
Kind A_Expr_Kind
75
Name *List

internal/sql/ast/a_indices.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Indices struct {
64
IsSlice bool
75
Lidx Node

internal/sql/ast/a_indirection.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Indirection struct {
64
Arg Node
75
Indirection *List

internal/sql/ast/access_priv.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AccessPriv struct {
64
PrivName *string
75
Cols *List

internal/sql/ast/aggref.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type Aggref struct {
64
Xpr Node
75
Aggfnoid Oid

internal/sql/ast/alias.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type Alias struct {
64
Aliasname *string
75
Colnames *List

internal/sql/ast/alter_collation_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterCollationStmt struct {
64
Collname *List
75
}

internal/sql/ast/alter_database_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterDatabaseStmt struct {
64
Dbname *string
75
Options *List

internal/sql/ast/alter_default_privileges_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterDefaultPrivilegesStmt struct {
64
Options *List
75
Action *GrantStmt

internal/sql/ast/alter_domain_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterDomainStmt struct {
64
Subtype byte
75
TypeName *List

internal/sql/ast/alter_enum_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterEnumStmt struct {
64
TypeName *List
75
OldVal *string

internal/sql/ast/alter_extension_contents_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterExtensionContentsStmt struct {
64
Extname *string
75
Action int

internal/sql/ast/alter_extension_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterExtensionStmt struct {
64
Extname *string
75
Options *List

internal/sql/ast/alter_fdw_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterFdwStmt struct {
64
Fdwname *string
75
FuncOptions *List

internal/sql/ast/alter_foreign_server_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterForeignServerStmt struct {
64
Servername *string
75
Version *string

internal/sql/ast/alter_function_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterFunctionStmt struct {
64
Func *ObjectWithArgs
75
Actions *List

internal/sql/ast/alter_object_depends_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterObjectDependsStmt struct {
64
ObjectType ObjectType
75
Relation *RangeVar

internal/sql/ast/alter_object_schema_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterObjectSchemaStmt struct {
64
ObjectType ObjectType
75
Relation *RangeVar

internal/sql/ast/alter_op_family_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterOpFamilyStmt struct {
64
Opfamilyname *List
75
Amname *string

internal/sql/ast/alter_operator_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterOperatorStmt struct {
64
Opername *ObjectWithArgs
75
Options *List

internal/sql/ast/alter_owner_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterOwnerStmt struct {
64
ObjectType ObjectType
75
Relation *RangeVar

internal/sql/ast/alter_policy_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterPolicyStmt struct {
64
PolicyName *string
75
Table *RangeVar

internal/sql/ast/alter_publication_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterPublicationStmt struct {
64
Pubname *string
75
Options *List

internal/sql/ast/alter_role_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterRoleStmt struct {
64
Role *RoleSpec
75
Options *List

internal/sql/ast/alter_seq_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterSeqStmt struct {
64
Sequence *RangeVar
75
Options *List

internal/sql/ast/alter_subscription_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterSubscriptionStmt struct {
64
Kind AlterSubscriptionType
75
Subname *string

internal/sql/ast/alter_table_move_all_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterTableMoveAllStmt struct {
64
OrigTablespacename *string
75
Objtype ObjectType

internal/sql/ast/alter_table_space_options_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterTableSpaceOptionsStmt struct {
64
Tablespacename *string
75
Options *List

internal/sql/ast/alter_ts_configuration_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterTSConfigurationStmt struct {
64
Kind AlterTSConfigType
75
Cfgname *List

internal/sql/ast/alter_ts_dictionary_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterTSDictionaryStmt struct {
64
Dictname *List
75
Options *List

internal/sql/ast/alter_user_mapping_stmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlterUserMappingStmt struct {
64
User *RoleSpec
75
Servername *string

internal/sql/ast/alternative_sub_plan.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AlternativeSubPlan struct {
64
Xpr Node
75
Subplans *List

internal/sql/ast/array_coerce_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type ArrayCoerceExpr struct {
64
Xpr Node
75
Arg Node

internal/sql/ast/array_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type ArrayExpr struct {
64
Xpr Node
75
ArrayTypeid Oid

internal/sql/ast/array_ref.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type ArrayRef struct {
64
Xpr Node
75
Refarraytype Oid

internal/sql/ast/bool_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type BoolExpr struct {
64
Xpr Node
75
Boolop BoolExprType

0 commit comments

Comments
 (0)