Type.PTypeOf protocol (etl_core v0.1.55)
Protocol oriented to determine the data type of an object
Summary
Functions
Determine the type of data
Types
@type t() :: term()
Functions
Link to this function
type_of(data)
Determine the type of data
Parameter:
- data. t(): Data.
Return:
- Atom.
Examples:
iex> Type.type_of(1)
:integer
iex> Type.type_of(%{hello: "world"})
:map
iex> tmp = "string"
iex> Type.type_of(tmp)
:binary