Here is my file structure.
myproject/
src/ // package src
res/ // package res
main.go // package main
go.mod
I have tried these commands, all worked,but i want to know about how do the command do and the difference?
go build myproject // the module path is “myproject”
go build myproject/src
go build
go build main.go