I am a new person to golang.
Basically in node.js i used to organise my general functions like i will put in
lib/ validation.js convert.js ..
Likewise i will organize. I need to do the same here..
I tried like
lib/ validation.go ( package name validator ) convert.go ( package name converter )
and in the main.go which is present at the root level of my src folder
i import like
"./lib" it works only if both package name is same else it throws error.
since i need separate names to call those function i cant give same packages coz of readability.
so basically i can create another folder in lib and with different Package name i can give. This is the option available or some other possibility is there.
Please suggest a good practice and optimum way.