我无法以任何方式自定义ArchLinux中的工作区。
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) ^获取图书馆:
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排气去环境:
[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"汇编:
gccgo form.go -fuse-ld=gold -o form可能是什么问题呢? 提前谢谢。