I\'m using the Go bindings for SDL and OpenGL. This is how I load the texture:
func (sprite *Sprite) loadImage(name string) { surf, err := img.Load(name)