xmlparse

package
v0.0.0-...-394ddad Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveAlerts

type ActiveAlerts struct {
	ActiveAlerts xml.Name `xml:"activeAlerts"`
	TimeStamp    string   `xml:"timeStamp,attr"`
	Events       []Event  `xml:"event"`
}

func Decode

func Decode(b []byte) ActiveAlerts

type Event

type Event struct {
	Event        xml.Name `xml:"event"`
	Title        string   `xml:"title"`
	Desc         string   `xml:"desc"`
	Station      string   `xml:"station"`
	Dispatch     string   `xml:"dispatch"`
	Lat          string   `xml:"lat"`
	Lng          string   `xml:"lng"`
	Postal       string   `xml:"postal"`
	Neighborhood string   `xml:"neighborhood"`
	Address      string   `xml:"address"`
	PubDate      string   `xml:"pubDate"`
}

type Event2

type Event2 struct {
	Event   xml.Name `xml:"event"`
	Address string   `xml:"address"`
	PubDate string   `xml:"pubDate"`
}

Jump to

Keyboard shortcuts

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