package
0.0.0-20241113112105-d5176070b8d9
Repository: https://github.com/ortizdavid/go-nopain.git
Documentation: pkg.go.dev
# README
conversion
Package for Type conversions
Conversions
- String to number
- Number to string
- Strings to Number Nil values
- Nil to String or Number
- Tests
# Functions
interface{} -> string.
No description provided by the author
Int32 or Nil -> string.
float32 -> int.
float32 -> int32.
float32 -> int64.
float32 -> string.
Int642 or Nil -> string.
float64 -> int.
float64 -> int32.
float32 -> int64.
float64 -> string.
Int32 or Nil -> string.
int32 -> float32.
int32 -> float64.
int32 -> string.
Int642 or Nil -> string.
int64 -> float32.
int64 -> float64.
int64 -> string.
Int or Nil -> string.
int -> float32.
int -> float64.
int -> string.
string -> String or Nil.
No description provided by the author
StringToFloat32 converts a string to a float32 and returns an error if conversion fails.
string -> float32 or nil.
StringToFloat64 converts a string to a float64 and returns an error if conversion fails.
string -> float64 or nil.
StringToInt converts a string to an int and returns an error if conversion fails.
StringToInt32 converts a string to an int32 and returns an error if conversion fails.
string -> int32 or nil.
StringToInt64 converts a string to an int64 and returns an error if conversion fails.
string -> int64 or nil.
StringToInt8 converts a string to an int8 and returns an error if conversion fails.
string -> int or nil.