@fribbledom while you're feeling generous, I'll ask you about my one experience writing in #golang.
Repo here: https://github.com/screenbeard/go-import-wordpress - I'm sure there's lots of mistakes you could help me fix, but I'm mostly interested in structure.
@fribbledom OK, so just having it in the same directory is enough? Can I use subdirs?
A sub-dir is a separate package. You can import it, but you can't have circular dependencies, and you can only access public members of that package.
@fribbledom Cheers. That's all good to know. So the idea I guess would be to keep the packages small and self contained and each doing one thing and maybe even separate them out into full packages individually maintained?
Absolutely! ... and once you grasp how it all ties together with Go's interfaces, you'll really start appreciating the beauty of it.
@fribbledom That seems like some extra overhead upfront if you're making something complex. Would require some thought and care to group stuff into reusable and not reusable, but I can see how it could be a good way to do it.
Just a heads up: sent a pull request your way over on GitHub 😉
@fribbledom I saw that. Do I HAVE to use tabs?
You can use '-tabs=false' with gofmt, but let's just say it's not the recommend way 😉
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!