response

package
v0.0.0-...-e4fecc8 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CorreiosException string = "correios exception: %v"

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Tipo      string `xml:"tipo"`
	Status    uint32 `xml:"status"`
	Data      string `xml:"data"`
	Hora      string `xml:"hora"`
	Descricao string `xml:"descricao"`
	Local     string `xml:"local"`
	Codigo    uint32 `xml:"codigo"`
	Cidade    string `xml:"cidade"`
	UF        string `xml:"uf"`
}

Event is a struct that represent each event of tracking code

func XMLToEvents

func XMLToEvents(xmlresponse string) ([]*Event, error)

XMLToEvents is a function that receive a csv string and convert to array of Event If XML has a error should return this error

Jump to

Keyboard shortcuts

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