Microservices in Go: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:
  .
  .
  ├── README.md
  ├── README.md
├── go.mod
  ├── metadata
  ├── metadata
  │   └── cmd
  │   └── cmd
Line 22: Line 23:
         └── main.go
         └── main.go
</font>
</font>
<syntaxhighlight lang='bash'>
go mod init go-micros
</syntaxhighlight>

Revision as of 20:51, 26 September 2023

External

Internal

Overview

Project Layout

Each of the services metadata, movie, rating contains multiple packages. The entire application is developed as a module.

.
├── README.md
├── go.mod
├── metadata
│   └── cmd
│       └── main.go
├── movie
│   └── cmd
│       └── main.go
└── rating
    └── cmd
        └── main.go

go mod init go-micros