Skip to content

Latest commit

 

History

History

typecheck

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Type Checking

This example shows the different ways of checking the datatype of a value at runtime:

  • type switch
  • type cast
  • reflect.Kind

Setup

  1. Run the program

    $ make run

Reference