Skip to content

Commit

Permalink
String() should return the compact string format by default
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Aug 30, 2024
1 parent 8ce79cd commit 57f8e67
Show file tree
Hide file tree
Showing 81 changed files with 625 additions and 1,170 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if err != nil {

// Call the String method to unparsed AST into a SQL string
for _, stmt := range statements {
fmt.Println(stmt.String(0 /* number of tab spaces*/))
fmt.Println(stmt.String())
}
```
## Update test assets
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
fmt.Println(string(bytes))
} else { // format SQL
for _, stmt := range stmts {
fmt.Println(stmt.String(0))
fmt.Println(stmt.String())
}
}
}
Loading

0 comments on commit 57f8e67

Please sign in to comment.