#whats the problem in the file structure

20 messages · Page 1 of 1 (latest)

rare blade
#

./main.go:6:6: undefined: fmt.println, this is the error i am getting

sweet jay
rare blade
#

oops

#

but i still see no expected output

#

exited with exit code 0

#

that suppose to be not good right?

sweet jay
#

sounds like you've run a build there, that just compiles it

#

not sure what the "cannot be executed" business is

rare blade
#

expanded version

#

is my gopath and goroot correct

#

what does it even do

rare blade
sweet jay
#

paths sound like they may reasonable

#

although not sure why it needs to apply them on build - goland is a bit weird in my experience

rare blade
#

I found the reason, for the build error

#

I was using hello as the package name

#

it should have been package main

rare blade
#

#resolved

#

?resolved