runtime.Defer: remove proc

This commit is contained in:
xushiwei
2024-06-08 16:31:52 +08:00
parent abf461a049
commit 32bfb3d57e
5 changed files with 81 additions and 90 deletions

View File

@@ -107,6 +107,11 @@ func SmartDoFile(inFile string, pkgPath ...string) {
}
outFile := dir + fname
b, err := os.ReadFile(outFile)
if err == nil && len(b) == 1 && b[0] == ';' {
return // skip to gen
}
if len(pkgPath) > 0 {
Do(pkgPath[0], inFile, outFile)
} else {