XmlReader

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 5 Imported by: 0

README

Large Xml Reader Golang

Package for reading and writing large xml files line by line

Installation

go get github.com/Bel-uga-develop/XmlReader

Documentation

Overview

Package for reading large xml files line by line

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func (*Reader) Read

func (reader *Reader) Read(callBack func(string, []byte) error) error

Reading a xml file line by line

func (*Reader) SetElement

func (reader *Reader) SetElement(elementName string)

Function to specify xml element for loop

func (*Reader) SetElements added in v0.1.2

func (reader *Reader) SetElements(elements []string)

Function to specify xml elements for loop

func (*Reader) SetFile

func (reader *Reader) SetFile(fileName string)

Function to specify xml file

type Writer added in v0.1.6

type Writer struct {
	// contains filtered or unexported fields
}

func (*Writer) Close added in v0.1.6

func (writer *Writer) Close() error

Close xml file

func (*Writer) Create added in v0.1.6

func (writer *Writer) Create(fileName string) error

Create xml file

func (*Writer) Write added in v0.1.6

func (writer *Writer) Write(data []byte) error

Write data

Jump to

Keyboard shortcuts

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