|
|
@ -148,20 +148,20 @@ try { |
|
|
|
let httpFileName = path.join(fileDir, `auto_generated_http_crud_${underscore_naming}_${struct}_${fileBaseName}`) |
|
|
|
|
|
|
|
fs.writeFile(crudFileName, `${package_src}\n\n${tmp[2]}`, function () { |
|
|
|
cp.exec(`gopls fix -a -w ${crudFileName}`, function (e) { |
|
|
|
console.log(e) |
|
|
|
cp.exec(`gopls fix -a -w ${crudFileName}`, function (a, b, c) { |
|
|
|
console.log(a, b, c) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`, function () { |
|
|
|
cp.exec(`gopls fix -a -w ${httpFileName}`, function (e) { |
|
|
|
console.log(e) |
|
|
|
cp.exec(`gopls fix -a -w ${httpFileName}`, function (a, b, c) { |
|
|
|
console.log(a, b, c) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
cp.exec(`gopls fix -a -w ${fileName}`, function (e) { |
|
|
|
console.log(e) |
|
|
|
cp.exec(`gopls fix -a -w ${fileName}`, function (a, b, c) { |
|
|
|
console.log(a, b, c) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|