xml

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedFormat = errors.New("unsupported file format")

ErrUnsupportedFormat is returned when the file format is not supported.

Functions

func Decode

func Decode(r io.Reader) (*model.Client, error)

Decode reads Portfolio Performance XML from r and returns the decoded Client. It performs a two-pass decode: first build the struct tree, then resolve references.

func Load

func Load(path string) (io.ReadCloser, error)

Load opens the portfolio file and returns a reader to the XML content. It detects the format by magic bytes and returns ErrUnsupportedFormat for ZIP and AES formats (planned for a later phase).

Types

This section is empty.

Jump to

Keyboard shortcuts

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