C
C
continue2016-01-31 23:35:54
linux
continue, 2016-01-31 23:35:54

Workspace setup?

Good day! I can't set up a workspace in ArchLinux in any way.

form.go:6:24: ошибка: import file «github.com/google/gxui» not found
  "github.com/google/gxui"
                        ^
form.go:7:35: ошибка: import file «github.com/google/gxui/drivers/gl» not found
  "github.com/google/gxui/drivers/gl"
                                   ^
form.go:8:36: ошибка: import file «github.com/google/gxui/themes/dark» not found
  "github.com/google/gxui/themes/dark"
                                    ^
form.go:11:25: ошибка: expected package
 func appMain(driver gxui.Driver) {
                         ^
form.go:19:32: ошибка: expected package
  yesButton.OnClick(func(ev gxui.MouseEvent) {
                                ^
form.go:24:31: ошибка: expected package
  noButton.OnClick(func(ev gxui.MouseEvent) {
                               ^
form.go:12:11: ошибка: reference to undefined name «dark»
  theme := dark.CreateTheme(driver)
           ^
form.go:34:27: ошибка: reference to undefined name «gxui»
  btnLayout.SetOrientation(gxui.Horizontal)
                           ^
form.go:37:32: ошибка: reference to undefined name «gxui»
  layout.SetHorizontalAlignment(gxui.AlignCenter)
                                ^
form.go:38:30: ошибка: reference to undefined name «gxui»
  layout.SetVerticalAlignment(gxui.AlignMiddle)
                              ^
form.go:44:2: ошибка: reference to undefined name «gxui»
  gxui.EventLoop(driver)
  ^
form.go:48:2: ошибка: reference to undefined name «gl»
  gl.StartDriver("", appMain)
  ^

Getting libraries:
go get -u github.com/google/gxui
go get -u github.com/google/gxui/drivers/gl
go get -u github.com/google/gxui/themes/dark

Exhaust go env:
[continue@LenovoG780 user]$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/continue/go"
GORACE=""
GOROOT="/usr"
GOTOOLDIR="/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"

Compilation:
gccgo form.go -fuse-ld=gold -o form
What could be the problem?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
continue, 2016-02-02
@continue

Actual.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question