josephspurrier / gowebapp

Basic MVC Web Application in Go
MIT License
1.14k stars 197 forks source link

How to create global variable? #45

Closed k0fi closed 3 years ago

k0fi commented 4 years ago

Hello Joseph, I'm wondering what is the best way to create some global variables which are available to all packages?

josephspurrier commented 3 years ago

Late reply. I would put them in the app/shared package.