marshaller

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package marshaller provides functionality for marshaling and unmarshaling resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller

type Marshaller[T any] interface {
	// Marshal serializes the model into a string representation.
	Marshal(model T) (string, error)

	// Unmarshal deserializes the model from a byte representation.
	Unmarshal(data []byte, model *T) error

	// UnmarshalString deserializes the model from a string representation.
	UnmarshalString(data string, model *T) error
}

Marshaller is an interface for a resource marshaller.

Directories

Path Synopsis
Package yamlmarshaller provides functionality for marshaling and unmarshaling YAML documents.
Package yamlmarshaller provides functionality for marshaling and unmarshaling YAML documents.

Jump to

Keyboard shortcuts

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