mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
12 lines
124 B
Go
12 lines
124 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
a := complex(3, 2)
|
|
fmt.Println(a, real(a), imag(a))
|
|
}
|
|
|
|
// Output:
|
|
// (3+2i) 3 2
|