reflectx

package
v0.0.98 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSize

func CalculateSize(l *logrusx.Logger, v interface{}) int

CalculateSize calculates the size of the given value `v`. This function cannot panic as it will recover and log the stack trace using the provided logger `l` whenever a panic occurs.

Parameters:

  • l: A logger instance used for logging stack traces in case of a panic.
  • v: The value whose size is to be calculated.

Returns:

The size of the given value `v` as an integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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