Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
12 lines
170 B
Go
12 lines
170 B
Go
package main
|
|
|
|
import . "virtual_derivation"
|
|
|
|
// very innocent example
|
|
|
|
func main() {
|
|
b := NewB(3)
|
|
if b.Get_a() != b.Get_b() {
|
|
panic("something is really wrong")
|
|
}
|
|
}
|