fix: malformed code pasted if reimplement is true

solution: replace go/ast with dst
This commit is contained in:
2025-02-16 14:35:50 +07:00
parent 86e4b9e977
commit e522f293c9
5 changed files with 128 additions and 95 deletions

View File

@@ -25,6 +25,7 @@ func ImplementServices(mainPkgDir string, reimplement bool) {
}
func main() {
log.SetFlags(0)
projectPath := flag.String("p", ".", "project path")
reimplement := flag.Bool("f", false, "pass -f to allow tool to overwrite exist functions and service structure")
flag.Parse()