mirror of
https://github.com/xinliangnote/go-gin-api.git
synced 2024-04-21 12:31:46 +00:00
23 lines
296 B
Batchfile
23 lines
296 B
Batchfile
@echo off
|
|
chcp 65001
|
|
echo.
|
|
echo Regenerating handler file
|
|
echo.
|
|
go run -v .\cmd\handlergen\main.go -handler %1
|
|
if %errorlevel% == 1 (
|
|
echo.
|
|
echo failed!!!
|
|
exit 1
|
|
)
|
|
echo.
|
|
echo Formatting code
|
|
echo.
|
|
go run -v .\cmd\mfmt\main.go
|
|
if %errorlevel% == 1 (
|
|
echo.
|
|
echo failed!!!
|
|
exit 1
|
|
)
|
|
echo.
|
|
echo Done.
|