person

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package person contains the shared Person object for individual people.

Index

Constants

This section is empty.

Variables

View Source
var ErrFilter = errors.New("invalid filter used")

Functions

This section is empty.

Types

type Person

type Person struct {
	ID   string // ID used in URLs to link to the person.
	Nick string // Nick of the person.
	HR   bool   // Inject a HR element to separate a collection of groups.
}

Person represent people who are listed as authors on the website.

type Persons

type Persons []Person

func (Persons) Template

func (p Persons) Template(dest, tmpl string) error

Tempate saves to dest the HTML used by the website to list people.

func (Persons) TemplateW added in v1.11.0

func (p Persons) TemplateW(w io.Writer, tmpl string) error

Tempate writes the HTML used by the website to list people.

Jump to

Keyboard shortcuts

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