paramutil

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrIfPresent

func AddrIfPresent[T comparable](v param.Opt[T]) *T

func ToOpt added in v0.2.0

func ToOpt[T comparable](v T, meta resp.Field) param.Opt[T]

func VariantFromUnion

func VariantFromUnion(u reflect.Value) (any, error)

VariantFromUnion can be used to extract the present variant from a param union type. A param union type is a struct with an embedded field of [APIUnion].

Types

This section is empty.

Jump to

Keyboard shortcuts

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