I have just started learning GO development, read a lot of articles and documentation, however haven't found a concrete answer.
There are some questions
- How to use local packages? Using
./../
doesn't work, I can put all my source code undervendror/src
directory, but it makes my project structure to look not like I want - Should I always upload somewhere in remote repository my packages? Is it possible to keep them local. Event if I develop a microservice, a microservice itself is a monolith application. And I don't want my microservice to have a single file. I want to split logic between several files.
- Is it fine to keep all files in a single file?
I know that this question has been already asked several times, however I haven't found any complete answer.
I would be grateful for any help. Thanks