printer

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

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HtmlContainer = `` /* 545-byte string literal not displayed */

Functions

func ToHtml

func ToHtml(html string, v interface{}) string

func ToJson

func ToJson(v interface{}) string

Types

type Printable

type Printable interface {
}

type PrintableList

type PrintableList interface {
	ToJson() string
	ToHtml() string
	ToTable() string
}

type Printer

type Printer struct {
	Type string
	File string
}

func (Printer) Print

func (p Printer) Print(list PrintableList)

Jump to

Keyboard shortcuts

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