You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go version
go version devel +2298dab082 Thu Oct 22 00:19:08 2020 +0000
Does this issue reproduce with the latest release?
I think this is the latest commit on the dev.go2go branch.
What operating system and processor architecture are you using (go env)?
$ go env
darwin/amd64
What did you do?
I maintain a package that uses cgo and could benefit from generics. I decided to create a branch to see how I liked the generics (for what it's worth: thumbs up so far!), but I started having issues with import "C".
I created a very small Hello World example that gives me the same issues I see with my "real world" package. Single file package with the name hello.go2.
If I change the file extension from .go2 to .go and do a normal go run, this is indeed what I see.
What did you see instead?
type checking failed for main
/var/folders/k6/8msxm8_x7ldbknfzp7cyzn680000gn/T/go2go-run942322282/hello.go2:8:8: could not import C (unknown import path "C": internal error: module loader did not resolve import)
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I think this is the latest commit on the dev.go2go branch.
What operating system and processor architecture are you using (
go env
)?What did you do?
I maintain a package that uses cgo and could benefit from generics. I decided to create a branch to see how I liked the generics (for what it's worth: thumbs up so far!), but I started having issues with
import "C"
.I created a very small Hello World example that gives me the same issues I see with my "real world" package. Single file package with the name hello.go2.
What did you expect to see?
If I change the file extension from .go2 to .go and do a normal
go run
, this is indeed what I see.What did you see instead?
The text was updated successfully, but these errors were encountered: