#quick question.

7 messages · Page 1 of 1 (latest)

proven obsidian
#

if your module (go.mod top line) is called github.com/ex/ex, you need to import github.com/ex/ex/thatpackage (usually the folder name, but not necessarily)

#

and make sure the contents are exported/capitalized

ember hound
#

Do you have a go.mod?
If not then do go mod init yourmodulename
Then in main.go you can import "modulename/packagename"

#

packagename being the package name of your second go file that is in the subdirectory

brazen flicker
#

i have go mode, but im working on linux and i have to do all manuali, cus im using nano as ide 😛