gogl icon indicating copy to clipboard operation
gogl copied to clipboard

Documentation improvement suggestion for *Ubyte to string

Open mbertschler opened this issue 11 years ago • 0 comments

I encountered a problem while using the the gl bindings. I used GetString and could not figure out how to properly make a string out of it. http://stackoverflow.com/questions/21370390/read-a-c-type-string-from-go

The answerer on stackoverflow provided this solution:

gl.GoStringUb( gl.GetString(gl.RENDERER) )

I just didn't find the GoStringUb function in the documentation, you probably should put a hint in the doc for each function that returns a *Ubyte ( or just convert it to a go string in this function it that would make more sense to you)

Thank you for your consideration.

mbertschler avatar Jan 27 '14 08:01 mbertschler