github.com/neugram/ng@v0.0.0-20180309130942-d472ff93d872/eval/testdata/varargs.ng (about) 1 import "os" 2 3 func f(vals ...interface{}) { 4 if len(vals) == 2 { 5 print("OK") 6 } 7 } 8 9 f(os.Open("does-not-exist"))