Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
14 lines
149 B
Go
14 lines
149 B
Go
package main
|
|
|
|
import . "input"
|
|
|
|
func main() {
|
|
f := NewFoo()
|
|
if f.Foo(2) != 4 {
|
|
panic(0)
|
|
}
|
|
|
|
if Sfoo("Hello") != "Hello world" {
|
|
panic(0)
|
|
}
|
|
}
|