yodacnv

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package yodacnv provides tools to read/write YODA archive files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader) ([]hbook.Object, error)

Read reads a YODA stream and converts the YODA values into their go-hep/hbook equivalents.

func Write

func Write(w io.Writer, args ...Marshaler) error

Write writes values to a YODA stream.

Types

type Marshaler

type Marshaler interface {
	MarshalYODA() ([]byte, error)
}

Marshaler is the interface implemented by an object that can marshal itself into a YODA form.

type Unmarshaler

type Unmarshaler interface {
	UnmarshalYODA([]byte) error
}

Unmarshaler is the interface implemented by an object that can unmarshal a YODA representation of itself.

Jump to

Keyboard shortcuts

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