|
|
@ -148,15 +148,21 @@ 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 () { }) |
|
|
|
cp.exec(`gopls fix -a -w ${crudFileName}`, function (e) { |
|
|
|
console.log(e) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`, function () { |
|
|
|
cp.exec(`gopls fix -a -w ${httpFileName}`, function () { }) |
|
|
|
cp.exec(`gopls fix -a -w ${httpFileName}`, function (e) { |
|
|
|
console.log(e) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
cp.exec(`gopls fix -a -w ${fileName}`, function () { }) |
|
|
|
cp.exec(`gopls fix -a -w ${fileName}`, function (e) { |
|
|
|
console.log(e) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// vscode.window.showErrorMessage(res)
|
|
|
|