xmlDemo

package
v0.0.0-...-6c16969 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseXML

func ParseXML(filename string)

func UnmarshalXML

func UnmarshalXML(filename string)

Types

type Email

type Email struct {
	Type    string `xml:"type,attr"`
	Address string `xml:",chardata"`
}

type Name

type Name struct {
	Family   string `xml:"family"`
	Personal string `xml:"personal"`
}

type Person

type Person struct {
	XMLName Name    `xml:"person"`
	Name    Name    `xml:"name"`
	Email   []Email `xml:"email"`
}

Jump to

Keyboard shortcuts

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