Gozero sqlgen patch (#119)

* merge upstream

* optimize insert logic

* reactor functions
This commit is contained in:
Keson
2020-10-11 21:55:44 +08:00
committed by GitHub
parent 7a134ec64d
commit 7e61555d42
10 changed files with 77 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
package project
import (
"errors"
"fmt"
"io/ioutil"
"os"
@@ -136,5 +137,5 @@ func matchModule(data []byte) (string, error) {
return strings.TrimSpace(target[index+6:]), nil
}
return "", nil
return "", errors.New("module not matched")
}