(from $GOROOT) ($GOPATH not set) in IntelliJ idea
<p>I've started using the golang in IntelliJ Idea.</p>

<p>I have the following code</p>

<p>package main</p>

<pre><code>import (
    "fmt"
    "/github.com/zzz/stringutil"
)

func main() {
    fmt.Printf(stringutil.Reverse("!oG ,olleH"))
}
</code></pre>

<p>and also I have the following stringutil.go file</p>

<pre><code>// Package stringutil contains utility functions for working with strings.
package stringutil

// Reverse returns its argument string reversed rune-wise left to right.
func Reverse(s string) string {
    r := []rune(s)
    for i, j := 0, len(r)-1; i &lt; len(r)/2; i, j = i+1, j-1 {
        r[i], r[j] = r[j], r[i]
    }
    return string(r)
}
</code></pre>

<p>I'm receiving the following error:</p>

<pre><code>src\github.com\zzz\hello\hello.go:5:2: cannot find package "src/github.com/zzz/stringutil" in any of:
    C:\Go\src\src\github.com\zzz\stringutil (from $GOROOT)
    ($GOPATH not set)
</code></pre>

<p>How can I configure the env variables through Intellij so I can run the program?</p>