Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
12 lines
133 B
Go
12 lines
133 B
Go
package main
|
|
|
|
import . "using_protected"
|
|
|
|
func main() {
|
|
f := NewFooBar()
|
|
f.SetX(3)
|
|
|
|
if f.Blah(4) != 4 {
|
|
panic("blah(int)")
|
|
}
|
|
}
|