veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

Can't get sdl #514

Closed Jonathan0827 closed 2 years ago

Jonathan0827 commented 2 years ago

How can I fix this

스크린샷 2022-03-29 오후 6 46 06

?

veeableful commented 2 years ago

Hi @Jonathan0827! You can first create a Go module in an empty directory by running go mod init [name] (replace [name] with your project name). Then you can run the go get -v github.com/veandco/go-sdl2/gfx command like what you did earlier.

Jonathan0827 commented 2 years ago

Thanks a lot! It worked like a magic