Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
26 lines
318 B
Go
26 lines
318 B
Go
package main
|
|
|
|
import "default_args"
|
|
|
|
func main() {
|
|
if default_args.StaticsStaticmethod() != 60 {
|
|
panic(0)
|
|
}
|
|
|
|
if default_args.Cfunc1(1) != 2 {
|
|
panic(0)
|
|
}
|
|
|
|
if default_args.Cfunc2(1) != 3 {
|
|
panic(0)
|
|
}
|
|
|
|
if default_args.Cfunc3(1) != 4 {
|
|
panic(0)
|
|
}
|
|
|
|
f := default_args.NewFoo()
|
|
|
|
f.Newname()
|
|
f.Newname(1)
|
|
}
|