Answer the question
In order to leave comments, you need to log in
How to properly implement models in the mvc pattern?
Hello. I registered the routes directly in main.go, I imported a package with all the controllers into it (I don’t see the point in dividing it into a bunch of packages) I also kind of figured out the views. Now I can't figure out how to implement the models. After all, each model must be written in its own file. Of course, I can import a package for each model, but in my opinion this is hellish shit code. How to implement correctly? thanks in advance
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question