package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jun 14, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package typeutil provides type checking and conversion utilities.
func IsBool(v interface{}) bool
IsBool checks if a value is a boolean.
func IsMap(v interface{}) bool
IsMap checks if a value is a map with string keys.
func IsNumber(v interface{}) bool
IsNumber checks if a value is a numeric type.
func IsSlice(v interface{}) bool
IsSlice checks if a value is a slice or array.
func IsString(v interface{}) bool
IsString checks if a value is a string.
ToFloat64 converts a value to float64 if possible.
ToString converts a value to string if possible.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.