typedetect

package
v0.0.0-...-599cc13 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package typedetect provides utilities for detecting type characteristics at runtime using unsafe operations for performance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFloat

func IsFloat[T Number]() bool

IsFloat returns true if T is a floating point type.

func IsSignedInteger

func IsSignedInteger[T Number]() bool

IsSignedInteger returns true if T is a signed integer type.

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Number represents all int, uint and float types.

Jump to

Keyboard shortcuts

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