diff --git a/Makefile b/products/Makefile similarity index 100% rename from Makefile rename to products/Makefile diff --git a/README.md b/products/README.md similarity index 100% rename from README.md rename to products/README.md diff --git a/go.mod b/products/go.mod similarity index 71% rename from go.mod rename to products/go.mod index 984c9e6..3c465db 100644 --- a/go.mod +++ b/products/go.mod @@ -1,13 +1,9 @@ -module github.com/rjNemo/go-micro +module github.com/rjNemo/go-micro/products go 1.14 require ( - github.com/go-openapi/errors v0.19.6 github.com/go-openapi/runtime v0.19.19 - github.com/go-openapi/strfmt v0.19.5 - github.com/go-openapi/swag v0.19.9 - github.com/go-openapi/validate v0.19.10 github.com/go-playground/universal-translator v0.17.0 // indirect github.com/go-playground/validator v9.31.0+incompatible github.com/gorilla/handlers v1.4.2 diff --git a/go.sum b/products/go.sum similarity index 100% rename from go.sum rename to products/go.sum diff --git a/main.go b/products/main.go similarity index 96% rename from main.go rename to products/main.go index 5dbc72e..a2bc0d9 100644 --- a/main.go +++ b/products/main.go @@ -10,7 +10,7 @@ import ( "github.com/gorilla/mux" "github.com/rjNemo/go-micro/products/handlers" - "github.com/rjNemo/go-micro/server" + "github.com/rjNemo/go-micro/products/server" ) const port = ":5000" diff --git a/products/models/product_test.go b/products/models/product_test.go index 2aca6f5..91d17e3 100644 --- a/products/models/product_test.go +++ b/products/models/product_test.go @@ -13,6 +13,5 @@ func TestValidation(t *testing.T) { if err != nil { t.Error(err) - } } diff --git a/server/server.go b/products/server/server.go similarity index 100% rename from server/server.go rename to products/server/server.go diff --git a/swagger.yaml b/products/swagger.yaml similarity index 100% rename from swagger.yaml rename to products/swagger.yaml