structdecode

package
v0.9.0-a.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package structdecode decodes UB object values into ordinary Go structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(v any, inputs map[string]any) error

Decode fills v's exported fields from inputs using ub struct tags. A field's key is the tag name, or the kebab-cased field name when the tag has no name. String values like "30s" decode into time.Duration fields. v must be a non-nil pointer to a struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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