From a868dccc109ef0b4b9fc76e5ad5e07a85e2bb3e3 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Thu, 14 Nov 2019 10:41:09 +0100 Subject: [PATCH] Revolve name overlapping with docs package --- start.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.go b/start.go index 46fe506..273ac06 100644 --- a/start.go +++ b/start.go @@ -13,7 +13,7 @@ import ( "git.rwth-aachen.de/acs/public/villas/web-backend-go/configuration" "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" - docs "git.rwth-aachen.de/acs/public/villas/web-backend-go/doc/api" // doc/api folder is used by Swag CLI, you have to import it + apidocs "git.rwth-aachen.de/acs/public/villas/web-backend-go/doc/api" // doc/api folder is used by Swag CLI, you have to import it "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/file" "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/metrics" @@ -67,8 +67,8 @@ func main() { return } - docs.SwaggerInfo.Host = baseHost - docs.SwaggerInfo.BasePath = basePath + apidocs.SwaggerInfo.Host = baseHost + apidocs.SwaggerInfo.BasePath = basePath metrics.InitCounters(db)