Skip to content

Commit 7dd9065

Browse files
committed
style: run go fmt on codegen/golang package
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 95ce348 commit 7dd9065

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

internal/codegen/golang/generator.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ func (g *CodeGenerator) addQueryOnePGX(f *poet.File, q Query) {
15291529
Name: q.MethodName,
15301530
Params: params,
15311531
Results: []poet.Param{{Type: q.Ret.DefineType()}, {Type: "error"}},
1532-
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
1532+
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
15331533
})
15341534
}
15351535

@@ -1590,7 +1590,7 @@ func (g *CodeGenerator) addQueryManyPGX(f *poet.File, q Query) {
15901590
Name: q.MethodName,
15911591
Params: params,
15921592
Results: []poet.Param{{Type: "[]" + q.Ret.DefineType()}, {Type: "error"}},
1593-
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
1593+
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
15941594
})
15951595
}
15961596

@@ -1623,7 +1623,7 @@ func (g *CodeGenerator) addQueryExecPGX(f *poet.File, q Query) {
16231623
Name: q.MethodName,
16241624
Params: params,
16251625
Results: []poet.Param{{Type: "error"}},
1626-
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
1626+
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
16271627
})
16281628
}
16291629

@@ -1656,7 +1656,7 @@ func (g *CodeGenerator) addQueryExecRowsPGX(f *poet.File, q Query) {
16561656
Name: q.MethodName,
16571657
Params: params,
16581658
Results: []poet.Param{{Type: "int64"}, {Type: "error"}},
1659-
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
1659+
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
16601660
})
16611661
}
16621662

@@ -1689,7 +1689,7 @@ func (g *CodeGenerator) addQueryExecResultPGX(f *poet.File, q Query) {
16891689
Name: q.MethodName,
16901690
Params: params,
16911691
Results: []poet.Param{{Type: "pgconn.CommandTag"}, {Type: "error"}},
1692-
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
1692+
Stmts: []poet.Stmt{poet.RawStmt{Code: body.String()}},
16931693
})
16941694
}
16951695

@@ -1754,7 +1754,7 @@ func (g *CodeGenerator) addCopyFromCodePGX(f *poet.File) {
17541754
Recv: &poet.Param{Name: "r", Type: iterName},
17551755
Name: "Values",
17561756
Results: []poet.Param{{Type: "[]interface{}"}, {Type: "error"}},
1757-
Stmts: []poet.Stmt{poet.RawStmt{Code: valuesBody.String()}},
1757+
Stmts: []poet.Stmt{poet.RawStmt{Code: valuesBody.String()}},
17581758
})
17591759

17601760
// Err method
@@ -1828,7 +1828,7 @@ func (g *CodeGenerator) addCopyFromCodeMySQL(f *poet.File) {
18281828
f.Decls = append(f.Decls, poet.Func{
18291829
Name: fmt.Sprintf("convertRowsFor%s", q.MethodName),
18301830
Params: []poet.Param{{Name: "w", Type: "*io.PipeWriter"}, {Name: "", Type: q.Arg.SlicePair()}},
1831-
Stmts: []poet.Stmt{poet.RawStmt{Code: convertBody.String()}},
1831+
Stmts: []poet.Stmt{poet.RawStmt{Code: convertBody.String()}},
18321832
})
18331833

18341834
// Main method
@@ -1877,7 +1877,7 @@ func (g *CodeGenerator) addCopyFromCodeMySQL(f *poet.File) {
18771877
Name: q.MethodName,
18781878
Params: params,
18791879
Results: []poet.Param{{Type: "int64"}, {Type: "error"}},
1880-
Stmts: []poet.Stmt{poet.RawStmt{Code: mainBody.String()}},
1880+
Stmts: []poet.Stmt{poet.RawStmt{Code: mainBody.String()}},
18811881
})
18821882
}
18831883
}
@@ -1970,7 +1970,7 @@ func (g *CodeGenerator) addBatchCodePGX(f *poet.File) {
19701970
Name: q.MethodName,
19711971
Params: params,
19721972
Results: []poet.Param{{Type: "*" + q.MethodName + "BatchResults"}},
1973-
Stmts: []poet.Stmt{poet.RawStmt{Code: mainBody.String()}},
1973+
Stmts: []poet.Stmt{poet.RawStmt{Code: mainBody.String()}},
19741974
})
19751975

19761976
// Result method based on command type
@@ -2035,7 +2035,7 @@ func (g *CodeGenerator) addBatchCodePGX(f *poet.File) {
20352035
Recv: &poet.Param{Name: "b", Type: "*" + q.MethodName + "BatchResults"},
20362036
Name: "Query",
20372037
Params: []poet.Param{{Name: "f", Type: fmt.Sprintf("func(int, []%s, error)", q.Ret.DefineType())}},
2038-
Stmts: []poet.Stmt{poet.RawStmt{Code: batchManyBody.String()}},
2038+
Stmts: []poet.Stmt{poet.RawStmt{Code: batchManyBody.String()}},
20392039
})
20402040

20412041
case ":batchone":
@@ -2064,7 +2064,7 @@ func (g *CodeGenerator) addBatchCodePGX(f *poet.File) {
20642064
Recv: &poet.Param{Name: "b", Type: "*" + q.MethodName + "BatchResults"},
20652065
Name: "QueryRow",
20662066
Params: []poet.Param{{Name: "f", Type: fmt.Sprintf("func(int, %s, error)", q.Ret.DefineType())}},
2067-
Stmts: []poet.Stmt{poet.RawStmt{Code: batchOneBody.String()}},
2067+
Stmts: []poet.Stmt{poet.RawStmt{Code: batchOneBody.String()}},
20682068
})
20692069
}
20702070

0 commit comments

Comments
 (0)