yaml

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package yaml is an indirection to the internal implementation that handles YAML deserialization.

This package allows the builder to override the indirection with an alternative implementation of YAML deserialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableYAMLWithMarshal

func EnableYAMLWithMarshal(marshaller func(any) ([]byte, error))

EnableYAMLWithMarshal registers a YAML-capable marshaler.

See EnableYAMLWithUnmarshal.

func EnableYAMLWithUnmarshal

func EnableYAMLWithUnmarshal(unmarshaller func([]byte, any) error)

EnableYAMLWithUnmarshal registers a YAML-capable unmarshaler.

This is not intended for concurrent use.

Most users would register using a init() function or enabling the registered library provided when importing "github.com/go-openapi/testify/enable/yaml/v2" like so.

The default registration uses go.yaml.in/yaml/v3 to deserialize YAML.

import(
	_ "github.com/go-openapi/testify/enable/yaml/v2"
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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