typeutil

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package typeutil provides type checking and conversion utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBool

func IsBool(v interface{}) bool

IsBool checks if a value is a boolean.

func IsMap

func IsMap(v interface{}) bool

IsMap checks if a value is a map with string keys.

func IsNumber

func IsNumber(v interface{}) bool

IsNumber checks if a value is a numeric type.

func IsSlice

func IsSlice(v interface{}) bool

IsSlice checks if a value is a slice or array.

func IsString

func IsString(v interface{}) bool

IsString checks if a value is a string.

func ToFloat64

func ToFloat64(v interface{}) (float64, bool)

ToFloat64 converts a value to float64 if possible.

func ToString

func ToString(v interface{}) (string, bool)

ToString converts a value to string if possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL