Documentation ¶
Overview ¶
Package cast is a lightweight casting (type conversion) library.
Index ¶
Constants ¶
View Source
const ( Uint8 = "uint8" Uint16 = "uint16" Uint32 = "uint32" Uint64 = "uint64" Uint = "uint" Int8 = "int8" Int16 = "int16" Int32 = "int32" Int64 = "int64" Int = "int" Float32 = "float32" Float64 = "float64" Bool = "bool" String = "string" )
Variables ¶
This section is empty.
Functions ¶
func FromString ¶
FromString casts a string value to the given type name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.