Documentation ¶
Overview ¶
Package request obtains and writes the data of the group to various formats.
Index ¶
- Variables
- func Print(db *sql.DB, w io.Writer, r Flags) (int, error)
- type Flags
- func (r Flags) DataList(db *sql.DB, w, dest io.Writer) error
- func (r Flags) Files(db *sql.DB, name string) (int, error)
- func (r Flags) HTML(db *sql.DB, w, dest io.Writer) error
- func (r Flags) Initialism(db *sql.DB, name string) (string, error)
- func (r Flags) Parse(db *sql.DB, w, dest io.Writer, tmpl string) error
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPointer = errors.New("pointer value cannot be nil")
Functions ¶
Types ¶
type Flags ¶
type Flags struct { Filter string // Filter groups by category. Counts bool // Counts the group's total files. Initialisms bool // Initialisms and acronyms for groups. Progress bool // Progress counter when requesting database data. }
Flags for group functions.
func (Flags) DataList ¶
DataList saves an auto-complete list for HTML input elements to the dest file path.
func (Flags) HTML ¶
HTML prints a snippet listing links to each group, with an optional file count. If dest is empty the results will be send to stdout.
func (Flags) Initialism ¶
Initialism returns the initialism of the named filter.
Click to show internal directories.
Click to hide internal directories.