people

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package people deals with people, person names, aliases and their roles.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataList

func DataList(filename string, r Request) error

DataList prints an auto-complete list for HTML input elements.

func Filters

func Filters() []string

Filters is a Role slice for use with the Cobra filterFlag.

func Fix added in v1.1.18

func Fix(simulate bool) error

Fix any malformed group names found in the database.

Example
package main

import (
	"log"

	"github.com/Defacto2/df2/lib/people"
)

func main() {
	const simulate = true
	if err := people.Fix(simulate); err != nil {
		log.Print(err)
	}
}
Output:

no people fixes needed

func HTML

func HTML(filename string, r Request) error

HTML prints a snippet listing links to each person.

func Print

func Print(r Request) error

Print lists people filtered by a role and summaries the results.

func Roles

func Roles() string

Roles or jobs of people.

Types

type Request

type Request struct {
	Filter   string // Filter people by category.
	Counts   bool   // Counts the person's total files.
	Progress bool   // Progress counter when requesting database data.
}

Request flags for people functions.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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