reflectutil

package
v0.35.13 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package reflectutil provides a safe and limited interface to some of the features of package reflect.

TODO(a.garipov): Consider exporting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatVerb

func FormatVerb(val any) (verb string)

FormatVerb returns a more fitting formatting verb depending on the type and the value. The current formatting exceptions are:

  • Nilable values that are nil are printed with the "%#v" verb.
  • Strings are printed with the "%q" verb.

func IsInterface

func IsInterface[T any]() (ok bool)

IsInterface returns true if T is an interface type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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