dimanche 28 août 2016

Golang MVC structur

I searched many sites and I saw a lot of sources in github and i haven't solution.

I created mvc website pattern in Golang:

  • app
    • controllers
    • models
    • lib (All the features class/functions)
    • middleware
    • router.go
  • resources
    • views
  • main.go

My question is: How to inject config to have everywhere settings and other implemented class that will always be needed (like load speed single page)

One more thing(additionally): Can anyone recommend me a good material or transcribe MVC tricks idea works MVC with golang (General useful information)

Aucun commentaire:

Enregistrer un commentaire