go-gl / gl

Go bindings for OpenGL (generated via glow)
MIT License
1.08k stars 74 forks source link

Not able to import #161

Closed Nabhay closed 3 months ago

Nabhay commented 3 months ago

The error provided is: go: github.com/go-gl/gl/v3.3/gl@v0.0.0-20231021071112-07e5d0ea2e71: invalid version: missing github.com/go-gl/gl/v3.3/gl/go.mod at revision 07e5d0ea2e71

dmitshur commented 3 months ago

There's no package with the import path github.com/go-gl/gl/v3.3/gl, so an error is expected.

There are packages with the following import paths:

See https://github.com/go-gl/gl#usage.

Nabhay commented 3 months ago

The issue persists, even after reinstalling Go and installing C and using the correct import paths

dmitshur commented 3 months ago

What was the exact command you ran, and what was its output?

Nabhay commented 3 months ago
import (
    "github.com/go-gl/gl/v3.3-core/gl"
    "fmt"
)

This is what I used, and it said broken import, no go.mod files found