golang-ui / nuklear

This project provides Go bindings for nuklear.h — a small ANSI C GUI library.
https://github.com/vurtun/nuklear
MIT License
1.57k stars 98 forks source link

Nk and Nk-Example both give errors: undefined Context and Input #34

Closed coreyog closed 6 years ago

coreyog commented 6 years ago

The following commands all provide the same error output:

Output:

# github.com/golang-ui/nuklear/nk
nk/etc.go:9: undefined: Context
nk/etc.go:9: undefined: Input

Go 1.9.2 x64 Linux Mint 18.3 x64

I'm sure I've missed something. I know I've got opengl installed properly, I've been toying with go-gl for other stuff and had it building and running properly. I'm not sure what else there is to forget.

xlab commented 6 years ago

Both Context and Input are declared in nk/types.go, this is strange.

coreyog commented 6 years ago

I don't know how but that file was missing. I deleted all of src/github.com/golang-ui and re-ran go get and it worked. I've never run across go get dropping files but oh well.