Hello guys, I have some misunderstanding regarding creation of packages. For example, if I would like to create some kind of package which would expose some structs where should i create it, inside
src/<packageName>, do i need to
go mod it, do i need to do anything after that to be able to import that package inside some other projects. I find it very confusing and I would like if someone could clear up my mind.
Recently I started learning go and learned that I should create my packages inside
src/ then after that I could not get it to work prolly due to golang being updated and could not find suitable resources to guide me.