Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
docs: Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent committed Jun 2, 2024
1 parent 1233794 commit 202a8e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/arcgen/lang/go/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ func extractTableNameFromCommentGroup(commentGroup *ast.CommentGroup) string {
//nolint:funlen
func appendAST(file *ast.File, structName string, sliceTypeSuffix string, tableName string, methodNameTable string, methodNameColumns string, methodPrefixColumn string, fieldNames, columnNames []string) {
if tableName != "" {
// func (s *StructName) TableName() string { return "TableName" }
// func (s *StructName) TableName() string {
// return "TableName"
// }
file.Decls = append(file.Decls, &ast.FuncDecl{
Recv: &ast.FieldList{
List: []*ast.Field{
Expand Down Expand Up @@ -199,7 +201,9 @@ func appendAST(file *ast.File, structName string, sliceTypeSuffix string, tableN
},
},
},
// func (s StructNameSlice) TableName() string { return "TableName" }
// func (s StructNameSlice) TableName() string {
// return "TableName"
// }
&ast.FuncDecl{
Recv: &ast.FieldList{
List: []*ast.Field{
Expand Down

0 comments on commit 202a8e0

Please sign in to comment.