project01, okay.
package declaration in main.go is main and gopro.go is gopro
is it correct? what am I doing wrong?
main.go and gopro.go are not packages, they're files
I can't tell you what you're doing wrong because you didn't even share your error messages
You can't declare files with different package names in a single directory. Probably move gopro.go in a subdirectory named "gopro" inside your main directory. OR declare package name as "main" in gopro.go present in your current directory.
you mean both files as package main
Обсуждают сегодня