mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
* gi: rename gi_c into _gi_c * gi: rename test into _test * gi: fix README syntax
19 lines
225 B
Go
19 lines
225 B
Go
package main
|
|
|
|
func init() {
|
|
println("Hello from init 1")
|
|
}
|
|
|
|
func init() {
|
|
println("Hello from init 2")
|
|
}
|
|
|
|
func main() {
|
|
println("Hello from main")
|
|
}
|
|
|
|
// Output:
|
|
// Hello from init 1
|
|
// Hello from init 2
|
|
// Hello from main
|