Gets the type of a variable
Aliases:
typeid(variable)
variable.GetType()
variable.runtimeType
fmt.Printf("%T", variable)
variable :: Type
variable.getClass()
typeof variable
variable::class
ref variable
gettype(variable)
type(variable)
class(variable)
variable.class
variable.type()
variable.getClass
# Bash is dynamically typed, but you can use file or grep for basic checks:file variable | grep -q 'type'
type(of: variable)
typeof variable // Note: This checks the runtime type.