Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
14 lines
157 B
Go
14 lines
157 B
Go
package main
|
|
|
|
import . "extend_template_ns"
|
|
|
|
func main() {
|
|
f := NewFoo_One()
|
|
if f.Test1(37) != 37 {
|
|
panic(0)
|
|
}
|
|
|
|
if f.Test2(42) != 42 {
|
|
panic(0)
|
|
}
|
|
}
|