util

package
v0.0.0-...-2147667 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeCast

func SafeCast[T any](from any) T

SafeCast is a helper function to safely cast an interface to a specific type. It mainly to avoid annoying type assertion lint checks when we are sure about the type.

func Type

func Type(val any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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