Omit empty on calls queries #118

Merged
amigan merged 2 commits from omitemptyer into trunk 2025-02-22 15:41:55 -05:00
Showing only changes of commit 1b6e5af87f - Show all commits

View file

@ -12,10 +12,19 @@ import (
"strings"
)
const filePath = "./pkg/database/models.go"
var filePaths = []string{
"./pkg/database/models.go",
"./pkg/database/calls.sql.go",
}
func main() {
// Parse the source code
for _, v := range filePaths {
process(v)
}
}
func process(filePath string) {
fset := token.NewFileSet()
f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments)
if err != nil {