sort tables by name

fix typo
This commit is contained in:
Nemo
2020-04-06 17:05:34 +08:00
parent 79eba1ca61
commit 034506e602
10 changed files with 75 additions and 69 deletions

View File

@@ -15,12 +15,12 @@ func TestTools(t *testing.T) {
// out, _ := json.Marshal(pkg)
// tools.WriteFile("test.txt", []string{string(out)}, true)
list := Generate(pkg)
list, _ := Generate(pkg)
fmt.Println(list)
config.SetSingularTable(true)
config.SetSingularTable(true)
config.SetForeignKey(true)
list = Generate(pkg)
list, _ = Generate(pkg)
fmt.Println(list)
}