tablerend

package
v0.0.0-...-7c6a5d1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tablerend renders tables.

Package tablerend renders fritz entities as tables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptFunc

type OptFunc func(tr *TableRend)

OptFunc represents an optional configuration.

func WithStyle

func WithStyle(style table.Style) OptFunc

WithStyle applies optional table style.

type TableRend

type TableRend struct {
	// contains filtered or unexported fields
}

TableRend renders tables.

func New

func New(w io.Writer, opts ...OptFunc) *TableRend

New returns a new table renderer.

func (*TableRend) Info

func (r *TableRend) Info(info fritztypes.Info) error

Info renders a fritz info.

func (*TableRend) ListUsers

func (r *TableRend) ListUsers(users []fritztypes.User) error

ListUsers renders a user list.

Jump to

Keyboard shortcuts

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