Hi, i have a problem with compiling code, where code isnt in 1 file .go
Studying go by one resource service, there was a topic about "imports and packages". I repeated that code and have error.
I created project, created there directory "somecode" and there i have 2 files: factorial.go and main.go, both of files have package main for sure.
and i am getting this error:
But if I move factorial.go in new package - it works -_-
THE SECOND PROBLEM - i cant use imports by myself, when i do import "fmt" it just disappears, imports works only when i do some code and it appears by itself