mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
* gi: rename gi_c into _gi_c * gi: rename test into _test * gi: fix README syntax
13 lines
140 B
Go
13 lines
140 B
Go
package main
|
|
|
|
func f() (int, int) { return 2, 3 }
|
|
|
|
func g(i, j int) int { return i + j }
|
|
|
|
func main() {
|
|
println(g(f()))
|
|
}
|
|
|
|
// Output:
|
|
// 5
|