Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in pixelgl, can not import "." package? #44

Closed
duysqubix opened this issue Oct 10, 2023 · 1 comment
Closed

Issue in pixelgl, can not import "." package? #44

duysqubix opened this issue Oct 10, 2023 · 1 comment

Comments

@duysqubix
Copy link
Contributor

i have a code like this for my idie game:

package main

import (
	"github.com/faiface/pixel"
	"github.com/faiface/pixel/pixelgl"
)

func run() {
	// all of our code will be fired up from here
	cfg := pixelgl.WindowConfig{
		Title:  "Pixel Rocks!",
		Bounds: pixel.R(0, 0, 1024, 768),
	}
	win, err := pixelgl.NewWindow(cfg)
	if err != nil {
		panic(err)
	}
	for !win.Closed() {
		win.Update()
	}
}

func main() {
	pixelgl.Run(run)
}

But if i build the main.go OR run the file i getting this issue:
cannot find package "." in: C:\Go\src\github.com\faiface\pixel\pixelgl

i tryed:
go get github.com\faiface\pixel\pixelgl
and
go get github.com\faiface\pixel

Original issue: faiface/pixel#275

@duysqubix
Copy link
Contributor Author

Original issue was a user environment mistake. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant