printer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTemplateInvalid = errors.New("template invalid")

Functions

func HTML added in v1.0.4

func HTML(r *result.Result, writer io.Writer) error

func JSON added in v1.0.4

func JSON(r any, writer io.Writer, options *JSONOption) error

func Svg added in v0.3.0

func Svg(r *result.Result, writer io.Writer, options *SvgOption) error

func Text

func Text(r *result.Result, writer io.Writer, options *CommonOption) error

Types

type CommonOption added in v0.3.0

type CommonOption struct {
	HideSections bool
	HideMain     bool
	HideStd      bool
}

type JSONOption added in v1.0.4

type JSONOption struct {
	Indent     *int
	HideDetail bool
}

type SvgOption added in v0.3.0

type SvgOption struct {
	CommonOption
	Width       int
	Height      int
	MarginBox   int
	PaddingBox  int
	PaddingRoot int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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