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.

            Source Files