docs: fix space/tabs spacing

This commit is contained in:
Reinaldy Rafli 2021-11-10 11:21:13 +07:00
parent ba7ca9ac7d
commit 0e719455ab
1 changed files with 4 additions and 4 deletions

View File

@ -64,14 +64,14 @@ Another builder of `bob.CreateTableIfNotExists()` is also available.
```go ```go
func main() { func main() {
sql, _, err := bob. sql, _, err := bob.
CreateIndex("idx_email"). CreateIndex("idx_email").
On("users"). On("users").
// To create a CREATE UNIQUE INDEX ... // To create a CREATE UNIQUE INDEX ...
Unique(). Unique().
// Method "Spatial()" and "FullText()" are also available. // Method "Spatial()" and "FullText()" are also available.
// You can specify as many columns as you like. // You can specify as many columns as you like.
Columns(bob.IndexColumn{Name: "email", Collate: "DEFAULT", Extras: []string{"ASC"}}). Columns(bob.IndexColumn{Name: "email", Collate: "DEFAULT", Extras: []string{"ASC"}}).
ToSql() ToSql()
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }