This example shows the different ways of checking the datatype of a value at runtime:
- type switch
- type cast
reflect.Kind
-
Run the program
$ make run
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
This example shows the different ways of checking the datatype of a value at runtime:
reflect.Kind
Run the program
$ make run