therainingmonkey / gopher

A terminal browser for the Gopher protocol.
1 stars 0 forks source link

Can't build interface.go: too many errors #1

Closed arne-cl closed 4 months ago

arne-cl commented 6 years ago

Which version of gocui would I need to build this?

$ go get github.com/jroimartin/gocui
$ go build
# _/home/arne/bin/gopher
./interface.go:18:13: undefined: gocui.ErrorUnkView
./interface.go:27:13: undefined: gocui.ErrorUnkView
./interface.go:37:29: multiple-value g.SetCurrentView() in single-value context
./interface.go:45:9: undefined: gocui.Quit
./interface.go:51:13: undefined: gocui.ErrorUnkView
./interface.go:63:4: g.ShowCursor undefined (type *gocui.Gui has no field or method ShowCursor)
./interface.go:76:3: g.ShowCursor undefined (type *gocui.Gui has no field or method ShowCursor)
./interface.go:109:21: not enough arguments in call to gocui.NewGui
        have ()
        want (gocui.OutputMode)
./interface.go:109:21: multiple-value gocui.NewGui() in single-value context
./interface.go:118:48: undefined: gocui.Quit
./interface.go:118:48: too many errors
therainingmonkey commented 6 years ago

Sorry, I've no idea which version of gocui this was using, but this project was never really complete anyway. Perhaps I aught to make that more clear in the readme.

It would probably be easier to use this code as inspiration for your own gopher browser than to get this to build, in my opinion.