pluginutil

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(settings map[string]any, target any) error

Decode maps a settings map onto target. On failure it returns a caller-friendly error: raw mapstructure type-mismatch messages are rewritten into per-field sentences so that an invalid plugin setting surfaces as a readable validation message instead of an internal decoder dump.

func Parse

func Parse[T any](settings map[string]any) (T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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