convert

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 1 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToPointer

func ToPointer[T any](value T) *T

Convert value to pointer of data type

func ToSafeValue

func ToSafeValue[T any](value any) T

Convert any value to `T` data type and if value is not valid or `nil`, will use default value of `T` (null/nil safety) as return value

Types

This section is empty.

Jump to

Keyboard shortcuts

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