reflection

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reflection provides internal utility functions for reflection operations in the go-bricks framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractHandlerName

func ExtractHandlerName(handler any) string

ExtractHandlerName gets the function name from a handler function

func GetCallerPackage

func GetCallerPackage(skip int) string

GetCallerPackage extracts the package path of the calling function. The skip parameter is relative to the caller of GetCallerPackage.

func GetTypeName

func GetTypeName(t reflect.Type) string

GetTypeName returns the fully qualified type name

func GetTypeNameShort

func GetTypeNameShort(t reflect.Type) string

GetTypeNameShort returns just the type name without package path

Types

This section is empty.

Jump to

Keyboard shortcuts

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