configdecode

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package configdecode decodes a component's YAML config block over its default tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(raw Unmarshaler, conf any) error

Decode sets conf's default tags and then decodes raw over them, so an explicit value, false or zero included, wins.

Types

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(v any) error
}

Unmarshaler is a deferred YAML decode, such as a config block captured as a RawMessage.

Jump to

Keyboard shortcuts

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