Our great sponsors
-
Mattermost
Mattermost is an open source platform for secure collaboration across the entire software development lifecycle..
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I have a very hard time understanding go project structure. I have build a ho project consisting of multiple subpackages and a main.go and it works fine but when I need to build it on a server (heroku) it does not work because imports are absolute. I have even seen Projects like this: https://github.com/mattermost/mattermost-server that have no main.go but can be deployed. Can somebody explain me how to structure my code like in this repo ?
Can you take a look at my project:https://github.com/AlessandroRuggiero/cancello-cesana and tell me how could I change the imports so that someone who got the sources could build it too?