reference

package
v2.0.35+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 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 Author

type Author struct {
	Fullname string `xml:"fullname,attr"`
	Initials string `xml:"initials,attr"`
	Surname  string `xml:"surname,attr"`
}

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>.

type Front

type Front struct {
	Title  string `xml:"title"`
	Author Author `xml:"author"`
	Date   Date   `xml:"date"`
}

Front the reference <front>.

type Reference

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

Reference is the entire <reference> structure.

Jump to

Keyboard shortcuts

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