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
15 lines
116 B
Go
15 lines
116 B
Go
package main
|
|
|
|
func f(a int) int {
|
|
return 2*a + 1
|
|
}
|
|
|
|
var b int = f(3)
|
|
|
|
func main() {
|
|
println(b)
|
|
}
|
|
|
|
// Output:
|
|
// 7
|