title: Goland: cannot call specific methods from imported package
body: <p>Hellо, fellow Gophers!</p>
  <p>I have a trouble with import in GoLand, both on Windows and Mac. I am trying to implement this progress bar &quot;github.com/schollz/progressbar&quot;, but not all the methods from the package work.</p>
  <p>For example,</p>
  <pre><code>bar := progressbar.New(someint)
  </code></pre>
  <p>works perfecly.</p>
  <p>But if I call</p>
  <pre><code>bar := progressbar.NewOptions(someint), progressbar.OptionShowBytes(true))
  </code></pre>
  <p>then the compiler throws errors like</p>
  <blockquote>
  <p>#./main.go:118:21: undefined: progressbar.NewOptions<br />
  #./main.go:118:56: undefined: progressbar.OptionShowBytes</p>
  </blockquote>
  <p>The package is okay. And I reimported it for a few times just to check. Messing around with GO111MODULE doesn't change anything.</p>
  <p>Here is my go env</p>
  <pre><code>GO111MODULE=&quot;on&quot;
  GOARCH=&quot;amd64&quot;
  GOBIN=&quot;&quot;
  GOCACHE=&quot;/Users/alex/Library/Caches/go-build&quot;
  GOENV=&quot;/Users/alex/Library/Application Support/go/env&quot;
  GOEXE=&quot;&quot;
  GOEXPERIMENT=&quot;&quot;
  GOFLAGS=&quot;&quot;
  GOHOSTARCH=&quot;amd64&quot;
  GOHOSTOS=&quot;darwin&quot;
  GOINSECURE=&quot;&quot;
  GOMODCACHE=&quot;/Users/alex/go/pkg/mod&quot;
  GONOPROXY=&quot;&quot;
  GONOSUMDB=&quot;&quot;
  GOOS=&quot;darwin&quot;
  GOPATH=&quot;/Users/alex/go&quot;
  GOPRIVATE=&quot;&quot;
  GOPROXY=&quot;https://proxy.golang.org,direct&quot;
  GOROOT=&quot;/usr/local/go&quot;
  GOSUMDB=&quot;sum.golang.org&quot;
  GOTMPDIR=&quot;&quot;
  GOTOOLDIR=&quot;/usr/local/go/pkg/tool/darwin_amd64&quot;
  GOVCS=&quot;&quot;
  GOVERSION=&quot;go1.18.1&quot;
  GCCGO=&quot;gccgo&quot;
  GOAMD64=&quot;v1&quot;
  AR=&quot;ar&quot;
  CC=&quot;clang&quot;
  CXX=&quot;clang++&quot;
  CGO_ENABLED=&quot;1&quot;
  GOMOD=&quot;/Users/alex/go/src/awesomeProject/go.mod&quot;
  GOWORK=&quot;&quot;
  CGO_CFLAGS=&quot;-g -O2&quot;
  CGO_CPPFLAGS=&quot;&quot;
  CGO_CXXFLAGS=&quot;-g -O2&quot;
  CGO_FFLAGS=&quot;-g -O2&quot;
  CGO_LDFLAGS=&quot;-g -O2&quot;
  PKG_CONFIG=&quot;pkg-config&quot;
  GOGCCFLAGS=&quot;-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lt/86511lks3ns2l0_g7nhl8k840000gn/T/go-build4209101000=/tmp/go-build -gno-record-gcc-switches -fno-common&quot;
  </code></pre>
  <p>Googling the error didn't help either. Any help would be appreciated. Thank you!</p>