marshaller

package
v1.11.2 Latest Latest
Warning

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

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

README

pkg/io/marshaller

This package provides data marshalling utilities for KSail.

Purpose

Provides utilities for marshalling and unmarshalling data to and from various formats. This package abstracts the serialization/deserialization logic for different data formats used throughout KSail.

Features

  • Format Abstraction: Provides a common interface for different marshalling formats
  • Type Safety: Ensures type-safe marshalling and unmarshalling operations
  • Error Handling: Proper error reporting for marshalling operations
  • Extensible: Easy to add support for new data formats

Subpackages

Usage

import "github.com/devantler-tech/ksail-go/pkg/io/marshaller"

// Use specific marshaller implementations
// See individual subpackage documentation for detailed usage

The marshaller package provides a consistent interface for data serialization across different formats, enabling KSail to work with various configuration and data formats seamlessly.


⬅️ Go Back

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