diff --git a/generate_api.go b/generate_api.go new file mode 100644 index 0000000..3a201ed --- /dev/null +++ b/generate_api.go @@ -0,0 +1,5 @@ +package main + +//go:generate swag init -g cmd/apimain.go --output docs/api --instanceName api --exclude http/controller/admin +//go:generate swag init -g cmd/apimain.go --output docs/admin --instanceName admin --exclude http/controller/api +//go:generate go run cmd/apimain.go diff --git a/generate_run.go b/generate_run.go new file mode 100644 index 0000000..b2169e1 --- /dev/null +++ b/generate_run.go @@ -0,0 +1,3 @@ +package main + +//go:generate go run cmd/apimain.go