reference

package
v2.0.40+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: BSD-2-Clause Imports: 1 Imported by: 4

Documentation

Overview

Package reference defines the elements of a <reference> block.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Phone  string        `xml:"phone,omitempty"`
	Email  string        `xml:"email,omitempty"`
	URI    string        `xml:"uri,omitempty"`
	Postal AddressPostal `xml:"postal,omitempty"`
}

Address denotes the address of an RFC author.

type AddressPostal

type AddressPostal struct {
	PostalLine []string `xml:"postalline,omitempty"`

	Streets   []string `xml:"street,omitempty"`
	Cities    []string `xml:"city,omitempty"`
	Codes     []string `xml:"code,omitempty"`
	Countries []string `xml:"country,omitempty"`
	Regions   []string `xml:"region,omitempty"`
}

AddressPostal denotes the postal address of an RFC author.

type Author

type Author struct {
	Fullname     string        `xml:"fullname,attr,omitempty"`
	Initials     string        `xml:"initials,attr,omitempty"`
	Surname      string        `xml:"surname,attr,omitempty"`
	Role         string        `xml:"role,attr,omitempty"`
	Organization *Organization `xml:"organization,omitempty"`
	Address      *Address      `xml:"address,omitempty"`
}

Author is the reference author.

type Date

type Date struct {
	Year  string `xml:"year,attr,omitempty"`
	Month string `xml:"month,attr,omitempty"`
	Day   string `xml:"day,attr,omitempty"`
}

Date is the reference date.

type Format

type Format struct {
	Type   string `xml:"type,attr,omitempty"`
	Target string `xml:"target,attr"`
}

Format is the reference <format>. This is deprecated in RFC 7991, see Section 3.3.

type Front

type Front struct {
	Title   string   `xml:"title"`
	Authors []Author `xml:"author,omitempty"`
	Date    Date     `xml:"date"`
}

Front the reference <front>.

type Organization

type Organization struct {
	Abbrev string `xml:"abbrev,attr,omitempty"`
	Value  string `xml:",chardata"`
}

type Reference

type Reference struct {
	XMLName xml.Name `xml:"reference"`
	Anchor  string   `xml:"anchor,attr"`
	Front   Front    `xml:"front"`
	Format  *Format  `xml:"format,omitempty"`
	Target  string   `xml:"target,attr"`
}

Reference is the entire <reference> structure.

Jump to

Keyboard shortcuts

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