models

package
v0.0.0-...-3808b2b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type People

type People struct {
	XMLName       xml.Name  `xml:"people"`
	ListaPersonas []Persona `xml:"person"`
}

People is a Struct for the XML as a whole; a group of persons

type Persona

type Persona struct {
	ID          float64 `xml:"id" bson:"ID"`
	FirstName   string  `xml:"first_name" bson:"FirstName"`
	LastName    string  `xml:"last_name" bson:"LastName"`
	Company     string  `xml:"company" bson:"Company"`
	Email       string  `xml:"email" bson:"Email"`
	IPAddress   string  `xml:"ip_address" bson:"IPaddress"`
	PhoneNumber string  `xml:"phone_number" bson:"PhoneNumber"`
}

Persona is a Struct for a single person

func (Persona) Render

func (a Persona) Render(w http.ResponseWriter, r *http.Request) error

Render is a function to satisfy the renderer interface

Jump to

Keyboard shortcuts

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