lundi 15 juillet 2019

MVC design pattern folder structure in Go

The MVC design pattern in Python looks like this:

└── designed_pattern
    ├── __main__.py
    ├── controller
    │   └── __init__.py
    ├── model
    │   └── __init__.py
    └── view
        └── __init__.py

Inside the source files, one uses the full root path for imports, even in files in the same package, for example from designed_pattern.model.database.models import Users

The program would then be run with python -m designed_pattern, with the initialization code sitting in __main__.py

What folder structure in Go would achieve the same result?

Aucun commentaire:

Enregistrer un commentaire