Standard library / reflect

reflect.Complex128

Kind constant identifying complex number with float64 components. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const Complex128 Kind = 16

Working Example

Example Snippetgo
package main
import (  "fmt"  "reflect")
func main() { fmt.Println(reflect.TypeOf(complex128(0)).Kind() == reflect.Complex128) }
Go Reference