helpers

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 5 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(b io.Writer, code string, data any)

Execute executes a template using provided data.

func ForEachField

func ForEachField(msgType reflect.Type, fn func(field reflect.StructField) error) error

ForEachField iterates over fields in the type and calls a function for each public one.

func RecoverMarshal added in v0.10.2

func RecoverMarshal(err *error)

RecoverMarshal recovers from panic inside marshaller.

func RecoverUnmarshal added in v0.10.2

func RecoverUnmarshal(err *error)

RecoverUnmarshal recovers from panic inside unmarshaller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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