Skip to content

Commit d1c774f

Browse files
authored
String() should return the compact string format by default (#97)
1 parent 8ce79cd commit d1c774f

File tree

81 files changed

+625
-1170
lines changed

Some content is hidden

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

81 files changed

+625
-1170
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if err != nil {
5555

5656
// Call the String method to unparsed AST into a SQL string
5757
for _, stmt := range statements {
58-
fmt.Println(stmt.String(0 /* number of tab spaces*/))
58+
fmt.Println(stmt.String())
5959
}
6060
```
6161
## Update test assets

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func main() {
6565
fmt.Println(string(bytes))
6666
} else { // format SQL
6767
for _, stmt := range stmts {
68-
fmt.Println(stmt.String(0))
68+
fmt.Println(stmt.String())
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)