|
|
@ -149,19 +149,19 @@ try { |
|
|
|
|
|
|
|
fs.writeFile(crudFileName, `${package_src}\n\n${tmp[2]}`, function () { |
|
|
|
cp.exec(`gopls fix -a -w ${crudFileName}`, function (a, b, c) { |
|
|
|
console.log(a, b, c) |
|
|
|
console.log("exec:", a, b, c) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`, function () { |
|
|
|
cp.exec(`gopls fix -a -w ${httpFileName}`, function (a, b, c) { |
|
|
|
console.log(a, b, c) |
|
|
|
console.log("exec:", a, b, c) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
cp.exec(`gopls fix -a -w ${fileName}`, function (a, b, c) { |
|
|
|
console.log(a, b, c) |
|
|
|
console.log("exec:", a, b, c) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|