Skip to content

gofmt -s -w . #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions internal/codegen/golang/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (i *importer) interfaceImports() fileImports {
}

std := map[string]struct{}{
"context": struct{}{},
"context": {},
}
if uses("sql.Null") {
std["database/sql"] = struct{}{}
Expand Down Expand Up @@ -183,12 +183,12 @@ func (i *importer) interfaceImports() fileImports {
}

pkgs := make([]ImportSpec, 0, len(pkg))
for spec, _ := range pkg {
for spec := range pkg {
pkgs = append(pkgs, spec)
}

stds := make([]ImportSpec, 0, len(std))
for path, _ := range std {
for path := range std {
stds = append(stds, ImportSpec{Path: path})
}

Expand Down Expand Up @@ -243,12 +243,12 @@ func (i *importer) modelImports() fileImports {
}

pkgs := make([]ImportSpec, 0, len(pkg))
for spec, _ := range pkg {
for spec := range pkg {
pkgs = append(pkgs, spec)
}

stds := make([]ImportSpec, 0, len(std))
for path, _ := range std {
for path := range std {
stds = append(stds, ImportSpec{Path: path})
}

Expand Down Expand Up @@ -330,7 +330,7 @@ func (i *importer) queryImports(filename string) fileImports {
}

std := map[string]struct{}{
"context": struct{}{},
"context": {},
}
if uses("sql.Null") {
std["database/sql"] = struct{}{}
Expand Down Expand Up @@ -380,12 +380,12 @@ func (i *importer) queryImports(filename string) fileImports {
}

pkgs := make([]ImportSpec, 0, len(pkg))
for spec, _ := range pkg {
for spec := range pkg {
pkgs = append(pkgs, spec)
}

stds := make([]ImportSpec, 0, len(std))
for path, _ := range std {
for path := range std {
stds = append(stds, ImportSpec{Path: path})
}

Expand Down
6 changes: 3 additions & 3 deletions internal/codegen/kotlin/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (i *importer) interfaceImports() [][]string {

std := stdImports(uses)
stds := make([]string, 0, len(std))
for s, _ := range std {
for s := range std {
stds = append(stds, s)
}

Expand Down Expand Up @@ -85,7 +85,7 @@ func (i *importer) modelImports() [][]string {
}

stds := make([]string, 0, len(std))
for s, _ := range std {
for s := range std {
stds = append(stds, s)
}

Expand Down Expand Up @@ -163,7 +163,7 @@ func (i *importer) queryImports(filename string) [][]string {
}

stds := make([]string, 0, len(std))
for s, _ := range std {
for s := range std {
stds = append(stds, s)
}

Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/a_array_expr.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type A_ArrayExpr struct {
Elements *List
Location int
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/a_const.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type A_Const struct {
Val Node
Location int
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/a_expr.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type A_Expr struct {
Kind A_Expr_Kind
Name *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/a_indices.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type A_Indices struct {
IsSlice bool
Lidx Node
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/a_indirection.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type A_Indirection struct {
Arg Node
Indirection *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/access_priv.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AccessPriv struct {
PrivName *string
Cols *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/aggref.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type Aggref struct {
Xpr Node
Aggfnoid Oid
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alias.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type Alias struct {
Aliasname *string
Colnames *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_collation_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterCollationStmt struct {
Collname *List
}
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_database_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterDatabaseStmt struct {
Dbname *string
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_default_privileges_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterDefaultPrivilegesStmt struct {
Options *List
Action *GrantStmt
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_domain_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterDomainStmt struct {
Subtype byte
TypeName *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_enum_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterEnumStmt struct {
TypeName *List
OldVal *string
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_extension_contents_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterExtensionContentsStmt struct {
Extname *string
Action int
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_extension_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterExtensionStmt struct {
Extname *string
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_fdw_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterFdwStmt struct {
Fdwname *string
FuncOptions *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_foreign_server_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterForeignServerStmt struct {
Servername *string
Version *string
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_function_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterFunctionStmt struct {
Func *ObjectWithArgs
Actions *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_object_depends_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterObjectDependsStmt struct {
ObjectType ObjectType
Relation *RangeVar
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_object_schema_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterObjectSchemaStmt struct {
ObjectType ObjectType
Relation *RangeVar
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_op_family_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterOpFamilyStmt struct {
Opfamilyname *List
Amname *string
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_operator_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterOperatorStmt struct {
Opername *ObjectWithArgs
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_owner_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterOwnerStmt struct {
ObjectType ObjectType
Relation *RangeVar
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_policy_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterPolicyStmt struct {
PolicyName *string
Table *RangeVar
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_publication_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterPublicationStmt struct {
Pubname *string
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_role_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterRoleStmt struct {
Role *RoleSpec
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_seq_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterSeqStmt struct {
Sequence *RangeVar
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_subscription_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterSubscriptionStmt struct {
Kind AlterSubscriptionType
Subname *string
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_table_move_all_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterTableMoveAllStmt struct {
OrigTablespacename *string
Objtype ObjectType
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_table_space_options_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterTableSpaceOptionsStmt struct {
Tablespacename *string
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_ts_configuration_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterTSConfigurationStmt struct {
Kind AlterTSConfigType
Cfgname *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_ts_dictionary_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterTSDictionaryStmt struct {
Dictname *List
Options *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alter_user_mapping_stmt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlterUserMappingStmt struct {
User *RoleSpec
Servername *string
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/alternative_sub_plan.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type AlternativeSubPlan struct {
Xpr Node
Subplans *List
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/array_coerce_expr.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type ArrayCoerceExpr struct {
Xpr Node
Arg Node
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/array_expr.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type ArrayExpr struct {
Xpr Node
ArrayTypeid Oid
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/array_ref.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type ArrayRef struct {
Xpr Node
Refarraytype Oid
Expand Down
2 changes: 0 additions & 2 deletions internal/sql/ast/bool_expr.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ast

import ()

type BoolExpr struct {
Xpr Node
Boolop BoolExprType
Expand Down
Loading