You needn't explicitly set GOROOT (fashionable versions of Go can determine it out by themselves according to The situation from the go binary that you choose to operate).
The above is the structure of a typical Go https://izaakqudg623410.aboutyoublog.com/31241861/a-review-of-golang-file-structure